HingeLoss Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Hinge Loss, commonly used in classification tasks.
public sealed class HingeLoss : Microsoft.ML.Trainers.ILossFunction<float,float>, Microsoft.ML.Trainers.ISupportSdcaClassificationLoss
type HingeLoss = class
interface ISupportSdcaClassificationLoss
interface ISupportSdcaLoss
interface IScalarLoss
interface ILossFunction<single, single>
interface IClassificationLoss
Public NotInheritable Class HingeLoss
Implements ILossFunction(Of Single, Single), ISupportSdcaClassificationLoss
- Inheritance
-
HingeLoss
- Implements
The Hinge Loss function is defined as:
where
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,
While the hinge loss function is both convex and continuous, it is not smooth (that is not differentiable) at
For more, see Hinge Loss for classification.
Compute |
|
Derivative(Single, Single) | |
Dual |
|
Dual |
|
Loss(Single, Single) |
Produkto | Mga Bersyon |
---|---|
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 |