public interface ILossFunction<in TOutput,in TLabel>
type ILossFunction<'Output, 'Label> = interface
Public Interface ILossFunction(Of In TOutput, In 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.