Liking cljdoc? Tell your friends :D

scicloj.metamorph.ml.loss

Simple loss functions.

Simple loss functions.
raw docstring

aucclj

(auc predictions labels)

Calculates area under the ROC curve. Uses AUC formula from R's 'mlr' package. (sum(r[i]) - n.pos * (n.pos + 1) / 2) / (n.pos * n.neg) See https://github.com/mlr-org/mlr/blob/main/R/measures.R

Calculates area under the ROC curve. Uses AUC formula from R's 'mlr' package.
(sum(r[i]) - n.pos * (n.pos + 1) / 2) / (n.pos * n.neg)
See https://github.com/mlr-org/mlr/blob/main/R/measures.R
raw docstring

classification-accuracyclj

(classification-accuracy lhs rhs)

correct/total. Model output is a sequence of probability distributions. label-seq is a sequence of values. The answer is considered correct if the key highest probability in the model output entry matches that label.

correct/total.
Model output is a sequence of probability distributions.
label-seq is a sequence of values.  The answer is considered correct
if the key highest probability in the model output entry matches
that label.
raw docstring

classification-lossclj

(classification-loss lhs rhs)

1.0 - classification-accuracy.

1.0 - classification-accuracy.
raw docstring

maeclj

(mae predictions labels)

mean absolute error

mean absolute error
raw docstring

mseclj

(mse predictions labels)

mean squared error

mean squared error
raw docstring

rmseclj

(rmse predictions labels)

root mean squared error

root mean squared error
raw docstring

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

× close