tech.ml.dataset
tech.ml.dataset copied to clipboard
tensor->dataset not working for 2-d arrays
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])]))
No great reason - does as-tensor work for the 2d-array?
no, returns nil