RegressionTreeBase.LeftChild Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
LeftChild[i] is the i-th node's child index used when
(1) the numerical feature indexed by NumericalSplitFeatureIndexes[i] is less than or equal
to the threshold NumericalSplitThresholds[i], or
(2) the categorical features indexed by GetCategoricalCategoricalSplitFeatureRangeAt(Int32)'s
returned value with nodeIndex=i is NOT a sub-set of GetCategoricalSplitFeaturesAt(Int32) with
nodeIndex=i.
Note that the case (1) happens only when CategoricalSplitFlags[i] is false and otherwise (2)
occurs. A non-negative returned value means a node (i.e., not a leaf); for example, 2 means the 3rd node in
the underlying Microsoft.ML.Trainers.FastTree.RegressionTreeBase._tree. A negative returned value means a leaf; for example, -1 stands for the
~
(-1)-th leaf in the underlying Microsoft.ML.Trainers.FastTree.RegressionTreeBase._tree. Note that ~
is the
bitwise complement operator in C#; for details, see
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)