techascent / tech.ml.dataset

A Clojure high performance data processing system
Eclipse Public License 1.0
680 stars 35 forks source link

tensor->dataset not working for 2-d arrays #392

Open behrica opened 9 months ago

behrica commented 9 months ago

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])]))
cnuernber commented 9 months ago

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

behrica commented 6 months ago

no, returns nil