tech.ml.dataset
tech.ml.dataset copied to clipboard
new empty column is set to boolean datatype
(tech.v3.dataset.column/new-column :a [])
;; => #tech.v3.dataset.column<boolean>[0]
;; :a
;; []
Is there a way to force a datatype during creation of column?
Yes - use the map constructor form - or use empty container of target datatype - will have example forthcoming.
The only thing that will work is to create an empty container of the target datatype -
user> (require '[tech.v3.datatype :as dt])
nil
user> (ds/new-column :a (dt/make-reader :float32 0 nil))
#tech.v3.dataset.column<float32>[0]
:a
[]
Closing this for now. This isn't clearly an issue - boolean is the root of the type hierarchy.