Liking cljdoc? Tell your friends :D

clj-djl.training


accuracyclj

(accuracy)
source

add-accumulatorclj

(add-accumulator acc key)

Adds an accumulator to the accuracy for the results of the evaluation with the given key.

Adds an accumulator to the accuracy for the results of the evaluation with the
given key.
sourceraw docstring

add-evaluatorclj

(add-evaluator config evaluator)
source

add-training-listenersclj

(add-training-listeners config listener)
source

as-consumercljmacro

(as-consumer f)
source

attach-gradientclj

(attach-gradient ndarray)

Attaches a gradient NDArray to this NDArray and marks it so GradientCollector.backward(NDArray) can compute the gradient with respect to it.

Attaches a gradient NDArray to this NDArray and marks it so
GradientCollector.backward(NDArray) can compute the gradient with respect to it.
sourceraw docstring

backwardclj

(backward gc target)
source

closeclj

(close batch)
source

default-training-configclj

(default-training-config {:keys [loss devices data-manager initializer optimizer
                                 evaluator listeners]})
source

fitclj

(fit trainer nepochs train-iter)
(fit trainer nepochs train-iter test-iter)
source

forwardclj

(forward trainer input)
source

get-accumulatorclj

(get-accumulator acc key)

Returns the accumulated evaluator value.

Returns the accumulated evaluator value.
sourceraw docstring

get-devicesclj

(get-devices config)
source

get-evaluatorsclj

(get-evaluators trainer)
source

get-gradientclj

(get-gradient ndarray)

Returns the gradient NDArray attached to this NDArray.

Returns the gradient NDArray attached to this NDArray.
sourceraw docstring

get-lossclj

(get-loss trainer)
source

get-managerclj

(get-manager trainer)
source

get-metricsclj

(get-metrics trainer)

Get metrics from trainer, put the metrics to seq of map: [{"train_progress_Accuracy" {:timestamp 1607859588747 :value 0.68125 :unit "count"}}]

Get metrics from trainer, put the metrics to seq of map:
[{"train_progress_Accuracy" {:timestamp 1607859588747 :value 0.68125 :unit "count"}}]
sourceraw docstring

get-training-resultclj

(get-training-result trainer)
source

gradient-collectorclj

(gradient-collector)
source

initializeclj

(initialize trainer shapes)
(initialize trainer shape & shapes)
source

iter-seqclj

(iter-seq iterable)
(iter-seq iterable iter)
source

iterate-datasetclj

(iterate-dataset trainer ds)
source

metricsclj

(metrics)
source

new-accuracyclj

source

new-default-training-configclj

(new-default-training-config loss)
source

new-default-training-listenersclj

source

new-gradient-collectorclj

source

new-progress-barclj

source

new-topk-accuracyclj

source

new-trainerclj

source

new-training-configclj

source

notify-listenersclj

(notify-listeners trainer callback)
source

opt-initializerclj

(opt-initializer config initializer)
source

opt-optimizerclj

(opt-optimizer config optimizer)
source

parameter-storeclj

(parameter-store manager copy)
source

progress-barclj

(progress-bar)
source

set-metricsclj

(set-metrics trainer metrics)
source

softmax-cross-entropy-lossclj

(softmax-cross-entropy-loss)
source

stepclj

(step trainer)
source

topk-accuracyclj

(topk-accuracy topk)
(topk-accuracy index topk)
(topk-accuracy name index topk)
source

train-batchclj

(train-batch trainer batch)
source

trainerclj

(trainer {:keys [model loss devices data-manager initializer optimizer]})
(trainer model config)
source

training-configclj

source

training-listenersclj

(training-listeners)
source

update-accumulatorclj

(update-accumulator acc key label-list pred-list)

Updates the accuracy with the given key based on a NDList of labels and predictions.

Updates the accuracy with the given key based on a NDList of labels and
predictions.
sourceraw docstring

validate-batchclj

(validate-batch trainer batch)
source

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

× close