SmoothedHingeLoss 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.
A smooth version of the HingeLoss function, commonly used in classification tasks.
public sealed class SmoothedHingeLoss : Microsoft.ML.Trainers.ILossFunction<float,float>, Microsoft.ML.Trainers.ISupportSdcaClassificationLoss
type SmoothedHingeLoss = class
interface ISupportSdcaClassificationLoss
interface ISupportSdcaLoss
interface IScalarLoss
interface ILossFunction<single, single>
interface IClassificationLoss
Public NotInheritable Class SmoothedHingeLoss
Implements ILossFunction(Of Single, Single), ISupportSdcaClassificationLoss
- Inheritance
-
SmoothedHingeLoss
- Implements
Let
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,
The Smoothed Hinge Loss function is then defined as:
where
Smoothed |
Constructor for smoothed hinge losee. |
Compute |
|
Derivative(Single, Single) | |
Dual |
|
Dual |
|
Loss(Single, Single) |
Продукт | Версии |
---|---|
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, Preview, 4.0.0 |