5 writes to CategoricalSplit
Microsoft.ML.FastTree (5)
TreeEnsemble\InternalRegressionTree.cs (5)
86
CategoricalSplit
= new bool[maxLeaves - 1];
108
CategoricalSplit
= categoricalSplitAsBytes.Select(b => b > 0).ToArray();
221
CategoricalSplit
= categoricalSplit;
282
CategoricalSplit
= GetCategoricalSplitFromIndices(categoricalNodeIndices);
298
CategoricalSplit
= new bool[NumNodes];
26 references to CategoricalSplit
Microsoft.ML.FastTree (26)
FastTree.cs (1)
3312
if (_regTree.
CategoricalSplit
[nodeId])
RegressionTree.cs (1)
167
_categoricalSplitFlags = ImmutableArray.Create(_tree.
CategoricalSplit
, 0, _tree.NumNodes);
TreeEnsemble\InternalRegressionTree.cs (24)
109
if (
CategoricalSplit
.Any(b => b))
289
Contracts.Assert(
CategoricalSplit
[index]);
376
Contracts.Assert(
CategoricalSplit
!= null);
377
Contracts.Assert(
CategoricalSplit
.Length >= NumNodes);
382
if (
CategoricalSplit
[index])
446
checker(
CategoricalSplit
!= null &&
447
(
CategoricalSplit
.Length == numMaxNodes ||
CategoricalSplit
.Length == NumNodes), "bad categorical split length");
449
if (
CategoricalSplit
.Any(x => x))
464
for (int index = 0; index <
CategoricalSplit
.Length; index++)
466
if (
CategoricalSplit
[index])
517
CategoricalSplit
.Length * sizeof(bool) +
534
CategoricalSplit
.Length.ToByteArray(buffer, ref position);
535
foreach (var split in
CategoricalSplit
)
853
if (
CategoricalSplit
[node])
886
if (
CategoricalSplit
[node])
935
if (
CategoricalSplit
[node])
1053
CategoricalSplit
[indexOfNewNonLeaf] = categoricalSplit;
1096
if (
CategoricalSplit
[n] == false)
1113
if (
CategoricalSplit
[n] == false)
1138
if (
CategoricalSplit
[n])
1197
if (
CategoricalSplit
[n])
1259
if (!
CategoricalSplit
[i])
1546
if (
CategoricalSplit
[node])