Skip to content

ML.EVAL.CLASSIFICATION.LOG_LOSS

Returns the log loss.

Syntax

ML.EVAL.CLASSIFICATION.LOG_LOSS(y_true, y_score, normalize, sample_weight, labels)

Arguments

Name Type Default Description
y_true object DataFrame or array object of ground-truth target values.
y_score object DataFrame or array object of predicted probabilities or decision scores (e.g. output of ML.PREDICT_PROBA or ML.PREDICT).
normalize Any TRUE If TRUE, return the per-sample average loss. If FALSE, return the summed loss across samples.
sample_weight Any None Optional DataFrame or array object of per-sample weights. Omit for uniform weights.
labels object None Optional array of class labels to include in the score, in the order they should appear.

Examples

Examples coming soon

Working Excel formula examples for this function are not yet written.

See also