Liking cljdoc? Tell your friends :D

clj-nd4j.dataset


->datasetclj

(->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 :

  • no arg
  • two args (features and labels)
  • four args (all but masks are nilable)
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)
sourceraw docstring

->immutable-transformation1clj

(->immutable-transformation1 transform-fn)
source

->immutable-transformation2clj

(->immutable-transformation2 transform-fn)
source

binarizeclj

(binarize data)
(binarize data cutoff)
source

binarize!clj

(binarize! data)
(binarize! data cutoff)
source

clj->datasetcljmultimethod

source

copyclj

(copy data)
source

datasetclj

(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
sourceraw docstring

dataset?clj

(dataset? obj)
source

deep-split-test-and-trainclj

(deep-split-test-and-train dataset num-samples)
(deep-split-test-and-train dataset num-samples random)
source

do-binarize!clj

(do-binarize! data)
(do-binarize! data cutoff)
source

do-multiply!clj

(do-multiply! data multiplicator)
source

do-normalize!clj

(do-normalize! data)
source

do-scale!clj

(do-scale! data)
source

do-shuffle!clj

(do-shuffle! data)
source

extract-features-and-labelsclj

(extract-features-and-labels dataset)
source

load-datasetclj

(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!
sourceraw docstring

multiplyclj

source

multiply!clj

(multiply! data multiplicator)
source

normalizeclj

source

normalize!clj

(normalize! data)
source

raw-split-test-and-trainclj

(raw-split-test-and-train dataset num-samples)
(raw-split-test-and-train dataset num-samples seed-or-random)
source

read-datasetclj

(read-dataset io-coercible)
(read-dataset io-coercible data)
source

read-dataset!clj

(read-dataset! io-coercible)
(read-dataset! io-coercible data)
source

scaleclj

source

scale!clj

(scale! data)
source

shuffleclj

source

shuffle!clj

(shuffle! data)
source

split-test-and-trainclj

(split-test-and-train dataset num-samples)
(split-test-and-train dataset num-samples seed-or-random)
source

write-dataset!clj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close