Share via


SquaredLoss Class

Definition

The Squared Loss, commonly used in regression tasks.

public sealed class SquaredLoss : Microsoft.ML.Trainers.ILossFunction<float,float>, Microsoft.ML.Trainers.ISupportSdcaRegressionLoss
type SquaredLoss = class
    interface ISupportSdcaRegressionLoss
    interface ISupportSdcaLoss
    interface IScalarLoss
    interface ILossFunction<single, single>
    interface IRegressionLoss
Public NotInheritable Class SquaredLoss
Implements ILossFunction(Of Single, Single), ISupportSdcaRegressionLoss
Inheritance
SquaredLoss
Implements

Remarks

The Squared Loss function is defined as:

$L(\hat{y}, y) = (\hat{y} - y)^2$

where $\hat{y}$ is the predicted value and $y$ is the true value.

Constructors

SquaredLoss()

Methods

ComputeDualUpdateInvariant(Single)
Derivative(Single, Single)
DualLoss(Single, Single)
DualUpdate(Single, Single, Single, Single, Int32)
Loss(Single, Single)

Applies to