Ανάγνωση στα Αγγλικά

Κοινή χρήση μέσω


ExpLoss Class

Definition

Exponential Loss, commonly used in classification tasks.

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

Remarks

The Exponential Loss function is defined as:

L(y^,y)=eβyy^

where y^ is the predicted score, y{1,1} is the true label, and β is a scale factor set to 1 by default.

Note that the labels used in this calculation are -1 and 1, unlike Log Loss, where the labels used are 0 and 1. Also unlike Log Loss, y^ is the raw predicted score, not the predicted probability (which is calculated by applying a sigmoid function to the predicted score).

The Exponential Loss function penalizes incorrect predictions more than the Hinge Loss and has a larger gradient.

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