語言

TreeEnsembleModelParameters 類別

定義

public abstract class TreeEnsembleModelParameters : Microsoft.ML.Trainers.ModelParametersBase<float>, Microsoft.ML.Trainers.ICalculateFeatureContribution
type TreeEnsembleModelParameters = class
    inherit ModelParametersBase<single>
    interface ICalculateFeatureContribution
Public MustInherit Class TreeEnsembleModelParameters
Inherits ModelParametersBase(Of Single)
Implements ICalculateFeatureContribution
繼承
TreeEnsembleModelParameters
衍生
實作

方法

名稱 Description
GetFeatureWeights(VBuffer<Single>)

取得每個特徵在所有樹上的累積分配增益。

明確介面實作

名稱 Description
ICalculateFeatureContribution.FeatureContributionCalculator

用來計算每個特徵對範例分數的貢獻。FeatureContributionCalculatingTransformer 特徵貢獻的計算基本上是判斷樹中哪些分裂對最終分數影響最大,並將影響的價值分配給決定分裂的特徵。 更精確地說,特徵的貢獻等於每次遇到該特徵決策節點時,探索對向子樹所產生的分數變化。 考慮一個簡單的案例,只有一棵決策樹,該樹有一個決策節點對應二元特徵 F1。 給定一個特徵 F1 為真的例子,我們可以計算若選擇對應特徵 F1 為假的子樹,且保持其他特徵不變,該子樹會得到多少分數。 特徵 F1 在給定範例中的貢獻,是原始分數與在該特徵節點做相反決定所得分數的差值。 此演算法自然延伸至擁有多決策樹的模型。

ICanSaveModel.Save(ModelSaveContext) (繼承來源 ModelParametersBase<TOutput>)

適用於