scicloj / noj

A clojure framework for data science
https://scicloj.github.io/noj/
Eclipse Public License 1.0
55 stars 8 forks source link

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

Closed behrica closed 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])]))
behrica commented 9 months ago

wrong project