ILossFunction<TOutput,TLabel> Interface

Definition

public interface ILossFunction<in TOutput,in TLabel>
type ILossFunction<'Output, 'Label> = interface
Public Interface ILossFunction(Of In TOutput, In TLabel)

Type Parameters

TOutput
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
TLabel
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Derived

Methods

Loss(TOutput, TLabel)

Computes the loss given the output and the ground truth. Note that the return value has type Double because the loss is usually accumulated over many instances.

Applies to