Dela via


PoissonLoss Class

Definition

Poisson Loss function for Poisson Regression.

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

Remarks

The Poisson Loss function is defined as:

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

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

Constructors

PoissonLoss()

Methods

Derivative(Single, Single)
Loss(Single, Single)

Applies to