語言

QuantileRegressionTree.GetLeafSampleWeightsAt(Int32) 方法

定義

將訓練標籤歸還,當標籤落入指定葉子時。 若 GetLeafSamplesAt(Int32) 與 GetLeafSampleWeightsAt(Int32) 使用相同輸入,則該函數第 i 個回傳值為第 GetLeafSamplesAt(Int32)i 個標籤的權重。

public System.Collections.Generic.IReadOnlyList<double> GetLeafSampleWeightsAt(int leafIndex);
member this.GetLeafSampleWeightsAt : int -> System.Collections.Generic.IReadOnlyList<double>
Public Function GetLeafSampleWeightsAt (leafIndex As Integer) As IReadOnlyList(Of Double)

參數

leafIndex
Int32

指定葉子的索引。

傳回

訓練標籤的權重

適用於