4 writes to CategoricalSplitFeatureRanges
Microsoft.ML.FastTree (4)
TreeEnsemble\InternalRegressionTree.cs (4)
112
CategoricalSplitFeatureRanges
= new int[NumNodes][];
210
CategoricalSplitFeatureRanges
= new int[CategoricalSplitFeatures.Length][];
286
CategoricalSplitFeatureRanges
= new int[NumNodes][];
1044
CategoricalSplitFeatureRanges
= new int[MaxNumNodes][];
34 references to CategoricalSplitFeatureRanges
Microsoft.ML.FastTree (34)
RegressionTree.cs (3)
128
if (_tree.
CategoricalSplitFeatureRanges
== null || _tree.
CategoricalSplitFeatureRanges
[nodeIndex] == null)
131
return _tree.
CategoricalSplitFeatureRanges
[nodeIndex];
TreeEnsemble\InternalRegressionTree.cs (31)
116
CategoricalSplitFeatureRanges
[index] = buffer.ToIntArray(ref position);
215
CategoricalSplitFeatureRanges
[i] = new int[2];
216
CategoricalSplitFeatureRanges
[i][0] = CategoricalSplitFeatures[i].First();
217
CategoricalSplitFeatureRanges
[i][1] = CategoricalSplitFeatures[i].Last();
293
CategoricalSplitFeatureRanges
[index] = reader.ReadIntArray(2);
396
Contracts.Assert(
CategoricalSplitFeatureRanges
[indexLocal] != null &&
397
CategoricalSplitFeatureRanges
[indexLocal].Length == 2);
400
writer.WriteIntsNoCount(
CategoricalSplitFeatureRanges
[indexLocal].AsSpan(0, 2));
456
checker(
CategoricalSplitFeatureRanges
!= null &&
457
(
CategoricalSplitFeatureRanges
.Length == NumNodes ||
458
CategoricalSplitFeatureRanges
.Length == numMaxNodes),
461
checker(
CategoricalSplitFeatureRanges
.All(x => x == null || x.Length == 0 || x.Length == 2),
472
checker(
CategoricalSplitFeatureRanges
[index] != null,
475
checker(
CategoricalSplitFeatureRanges
[index].Length == 2,
485
CategoricalSplitFeatureRanges
[index][0] &&
487
CategoricalSplitFeatureRanges
[index][1],
515
(
CategoricalSplitFeatureRanges
!= null ?
CategoricalSplitFeatureRanges
.Select(ranges => ranges.SizeInBytes()).Sum() : 0) +
540
Contracts.AssertValue(
CategoricalSplitFeatureRanges
);
544
CategoricalSplitFeatureRanges
[i].ToByteArray(buffer, ref position);
938
Contracts.Assert(
CategoricalSplitFeatureRanges
!= null);
942
int end = featIndices.FindIndexSorted(0, count,
CategoricalSplitFeatureRanges
[node][1]);
943
for (int i = featIndices.FindIndexSorted(0, count,
CategoricalSplitFeatureRanges
[node][0]);
1042
Contracts.Assert(
CategoricalSplitFeatureRanges
== null);
1050
CategoricalSplitFeatureRanges
[indexOfNewNonLeaf] = categoricalSplitRange;
1141
Contracts.Assert(
CategoricalSplitFeatureRanges
[n] != null &&
1142
(
CategoricalSplitFeatureRanges
[n].Length == 2 ||
CategoricalSplitFeatureRanges
[n].Length == 0));
1147
for (int i = 0; i <
CategoricalSplitFeatureRanges
[n].Length; i++)
1148
CategoricalSplitFeatureRanges
[n][i] = oldToNewFeatures[
CategoricalSplitFeatureRanges
[n][i]];