1 write to _tree
Microsoft.ML.FastTree (1)
26 references to _tree
Microsoft.ML.FastTree (26)
RegressionTree.cs (26)
19/// <see cref="RegressionTreeBase"/> is an immutable wrapper over <see cref="_tree"/> for exposing some tree's
62/// the underlying <see cref="_tree"/>. A negative returned value means a leaf; for example, -1 stands for the
63/// <see langword="~"/>(-1)-th leaf in the underlying <see cref="_tree"/>. Note that <see langword="~"/> is the
85/// (for example, i is 1 for the 2nd node in <see cref="_tree"/>).
111if (_tree.CategoricalSplitFeatures == null || _tree.CategoricalSplitFeatures[nodeIndex] == null)
114return _tree.CategoricalSplitFeatures[nodeIndex];
128if (_tree.CategoricalSplitFeatureRanges == null || _tree.CategoricalSplitFeatureRanges[nodeIndex] == null)
131return _tree.CategoricalSplitFeatureRanges[nodeIndex];
142public int NumberOfLeaves => _tree.NumLeaves;
156public int NumberOfNodes => _tree.NumNodes;
162_lteChild = ImmutableArray.Create(_tree.LteChild, 0, _tree.NumNodes);
163_gtChild = ImmutableArray.Create(_tree.GtChild, 0, _tree.NumNodes);
165_numericalSplitFeatureIndexes = ImmutableArray.Create(_tree.SplitFeatures, 0, _tree.NumNodes);
166_numericalSplitThresholds = ImmutableArray.Create(_tree.RawThresholds, 0, _tree.NumNodes);
167_categoricalSplitFlags = ImmutableArray.Create(_tree.CategoricalSplit, 0, _tree.NumNodes);
168_leafValues = ImmutableArray.Create(_tree.LeafValues, 0, _tree.NumLeaves);
169_splitGains = ImmutableArray.Create(_tree.SplitGains, 0, _tree.NumNodes);