語言

ILossFunction<TOutput,TLabel> 介面

定義

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

類型參數

TOutput
這是反變數的型別參數。 也就是說,您可以使用您指定的類型,或衍生程度較低的任何類型。 如需共變數與反變數的詳細資訊,請參閱泛型中的共變數與反變數。
TLabel
這是反變數的型別參數。 也就是說,您可以使用您指定的類型,或衍生程度較低的任何類型。 如需共變數與反變數的詳細資訊,請參閱泛型中的共變數與反變數。
衍生

方法

名稱 Description
Loss(TOutput, TLabel)

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

適用於