語言

ILossFunction<TOutput,TLabel>.Loss(TOutput, TLabel) 方法

定義

計算輸出與地面真實值的損耗。 請注意,回退值的型別為 Double,因為損失通常是累積於多個實例中。

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

參數

output
TOutput
label
TLabel

傳回

適用於