ILossFunction<TOutput,TLabel>.Loss(TOutput, TLabel) Method

Definition

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.

public double Loss (TOutput output, TLabel label);
abstract member Loss : 'Output * 'Label -> double
Public Function Loss (output As TOutput, label As TLabel) As Double

Parameters

output
TOutput
label
TLabel

Returns

Applies to