Simple loss functions.
Simple loss functions.
(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
(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.
(classification-loss lhs rhs)
1.0 - classification-accuracy.
1.0 - classification-accuracy.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close