(->dataset)
(->dataset obj)
(->dataset features labels)
(->dataset features labels features-mask labels-mask)
Generic dataset coercer. Uses ->nd-array to coerce input which can be so a clojure structure. Single-arity version does nothing if input is a DataSet and parses a clojure structure if valid (note that it is the less performant way of doing this) You can pass a map : {:features ... :labels ... :features-mask ... :labels-mask ...} or a nested/empty vector (in same order) [[ ... ] [ ... ] [ ... ] [ ... ]] or nil (~ no arg) Valid args are either :
Generic dataset coercer. Uses ->nd-array to coerce input which can be so a clojure structure. Single-arity version does nothing if input is a DataSet and parses a clojure structure if valid (note that it is the less performant way of doing this) You can pass a map : {:features ... :labels ... :features-mask ... :labels-mask ...} or a nested/empty vector (in same order) [[ ... ] [ ... ] [ ... ] [ ... ]] or nil (~ no arg) Valid args are either : - no arg - two args (features and labels) - four args (all but masks are nilable)
(dataset)
(dataset features labels)
(dataset features labels features-mask labels-mask)
Strict wrapper of DataSet constructors, i.e. accepts only NDArray instances as input. Use ->dataset for a more flexible (but a bit less performant) coercer
Strict wrapper of DataSet constructors, i.e. accepts only NDArray instances as input. Use ->dataset for a more flexible (but a bit less performant) coercer
(deep-split-test-and-train dataset num-samples)
(deep-split-test-and-train dataset num-samples random)
(load-dataset io-coercible)
Loads a dataset from a file written preferably with write-dataset!
Loads a dataset from a file written preferably with write-dataset!
(raw-split-test-and-train dataset num-samples)
(raw-split-test-and-train dataset num-samples seed-or-random)
(split-test-and-train dataset num-samples)
(split-test-and-train dataset num-samples seed-or-random)
(write-dataset! io-coercible data)
Writes a dataset to a file which can be read back with load-dataset! saving some clojure interop loss
Writes a dataset to a file which can be read back with load-dataset! saving some clojure interop loss
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close