RegressionTreeBase.LeftChild 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
LeftChild[i] 是第 i 個節點的子索引,當(1) 由 NumericalSplitFeatureIndexes[i] 索引的數值特徵小於或等於閾值 NumericalSplitThresholds[i],或 (2) 由 GetCategoricalCategoricalSplitFeatureRangeAt(Int32)的 的類別特徵索引,且 nodeIndex=i 的回傳值不是 nodeIndex GetCategoricalSplitFeaturesAt(Int32) =i 的子集合。
請注意,(1) 的情況僅在 [i] 為假時 CategoricalSplitFlags發生,否則發生 (2) 。 非負回傳值表示節點(即非葉子);例如,2 表示底層 Microsoft.ML.Trainers.FastTree.RegressionTreeBase._tree節點 中的第三個節點。 負的回傳值表示葉子;例如,-1 代表 ~底層 Microsoft.ML.Trainers.FastTree.RegressionTreeBase._tree中第 (-1)片葉。 注意 ~ 是 C# 中的位元補數運算子;詳情請參見 https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-complement-operator。
public System.Collections.Generic.IReadOnlyList<int> LeftChild { get; }
member this.LeftChild : System.Collections.Generic.IReadOnlyList<int>
Public ReadOnly Property LeftChild As IReadOnlyList(Of Integer)