4 writes to GtChild
Microsoft.ML.FastTree (4)
TreeEnsemble\InternalRegressionTree.cs (4)
93
GtChild
= new int[maxLeaves - 1];
105
GtChild
= buffer.ToIntArray(ref position);
207
GtChild
= gtChild;
276
GtChild
= reader.ReadIntArray();
43 references to GtChild
Microsoft.ML.FastTree (43)
FastTree.cs (4)
3076
nodesFalseNodeIds.Add(tree.
GtChild
[nodeIndex] < 0 ? ~tree.
GtChild
[nodeIndex] + tree.NumNodes : tree.
GtChild
[nodeIndex]);
3286
public int[] GtChild => _regTree.
GtChild
;
RegressionTree.cs (1)
163
_gtChild = ImmutableArray.Create(_tree.
GtChild
, 0, _tree.NumNodes);
TreeEnsemble\InternalRegressionTree.cs (38)
373
writer.WriteIntArray(
GtChild
);
443
checker(
GtChild
!= null &&
GtChild
.Length == numMaxNodes, "bad gtchild");
512
GtChild
.SizeInBytes() +
532
GtChild
.ToByteArray(buffer, ref position);
567
GtChild
[node] != tree.
GtChild
[node] ||
576
GtChild
[node],
577
tree.
GtChild
[node],
639
return
GtChild
[node];
753
node =
GtChild
[node];
772
node =
GtChild
[node];
863
newNode =
GtChild
[node];
877
node =
GtChild
[node];
896
newNode =
GtChild
[node];
909
node =
GtChild
[node];
953
newNode =
GtChild
[node];
973
node =
GtChild
[node];
987
return GetNodesLeaves(LteChild[node]).Concat(GetNodesLeaves(
GtChild
[node]));
1031
parent = Array.FindIndex(
GtChild
, x => x == ~leaf);
1033
GtChild
[parent] = indexOfNewNonLeaf;
1060
GtChild
[indexOfNewNonLeaf] = ~NumLeaves;
1221
int gtChildCorrected =
GtChild
[n];
1322
int gtChildCorrected =
GtChild
[n];
1471
int parentOfGtChild1 = Array.IndexOf(
GtChild
, pos1);
1473
int parentOfGtChild2 = Array.IndexOf(
GtChild
, pos2);
1478
GtChild
[parentOfGtChild1] = pos2;
1482
GtChild
[parentOfGtChild2] = pos1;
1485
int gtChild1 =
GtChild
[pos1];
1490
GtChild
[pos1] =
GtChild
[pos2];
1495
GtChild
[pos2] = gtChild1;
1504
PathToLeaf(
GtChild
[0], leafIndex, path);
1521
if (PathToLeaf(
GtChild
[currentNodeIndex], leafIndex, path))
1567
newNode =
GtChild
[node];
1584
otherWay =
GtChild
[node];
1605
otherWay =
GtChild
[node];
1611
node =
GtChild
[node];