Прочетете на английски

Споделяне чрез


LogLoss Class

Definition

The Log Loss, also known as the Cross Entropy Loss. It is commonly used in classification tasks.

C#
public sealed class LogLoss : Microsoft.ML.Trainers.ILossFunction<float,float>, Microsoft.ML.Trainers.ISupportSdcaClassificationLoss
Inheritance
LogLoss
Implements

Remarks

The Log Loss function is defined as:

L(p(y^),y)=yln(y^)(1y)ln(1y^)

where y^ is the predicted score, p(y^) is the probability of belonging to the positive class by applying a sigmoid function to the score, and y{0,1} is the true label.

Note that the labels used in this calculation are 0 and 1, unlike Hinge Loss and Exponential Loss, where the labels used are -1 and 1.

The Log Loss function provides a measure of how certain a classifier's predictions are, instead of just measuring how correct they are. For example, a predicted probability of 0.80 for a true label of 1 gets penalized more than a predicted probability of 0.99.

Constructors

Methods

Applies to

Продукт Версии
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