tech.ml.dataset icon indicating copy to clipboard operation
tech.ml.dataset copied to clipboard

tensor->dataset not working for 2-d arrays

Open behrica opened this issue 1 year ago • 2 comments

https://clojurians.zulipchat.com/#narrow/stream/236259-tech.2Eml.2Edataset.2Edev/topic/tensor-.3Edataset.20not.20working.20for.202-d.20arrays

(tech.v3.dataset.tensor/tensor->dataset (to-array-2d [[1 1] [1 2] [2 2] [2 3]]))

fails., while it works for other 2D structures (seq-of-seq, tensor). Any reason for this ?

similar here:

(dst/tensor->dataset
 (to-array [(int-array [1 1])
            (int-array [1 2])
            (int-array [2 2])
            (int-array [2 3])]))

behrica avatar Jan 30 '24 20:01 behrica

No great reason - does as-tensor work for the 2d-array?

cnuernber avatar Feb 01 '24 12:02 cnuernber

no, returns nil

behrica avatar Apr 25 '24 20:04 behrica