SquaredLoss Class
Definition
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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for