MulticlassClassificationMetrics.LogLoss Property

Definition

Gets the average log-loss of the classifier. Log-loss measures the performance of a classifier with respect to how much the predicted probabilities diverge from the true class label. Lower log-loss indicates a better model. A perfect model, which predicts a probability of 1 for the true class, will have a log-loss of 0.

C#
public double LogLoss { get; }

Property Value

Remarks

The log-loss metric is computed as follows: LogLoss=1mi=1mlog(pi), where m is the number of instances in the test set and pi is the probability returned by the classifier of the instance belonging to the true class.

Applies to

Product Versions
ML.NET 1.0.0, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, 4.0.0, Preview