1 write to NodeIndex
Microsoft.ML.FastTree (1)
Training\RegressionTreeNodeDocuments.cs (1)
28NodeIndex = nodeIndex;
16 references to NodeIndex
Microsoft.ML.FastTree (16)
Training\RegressionTreeNodeDocuments.cs (16)
22public bool IsLeaf => NodeIndex < 0; 34_documentCount = Tree.GetNodesLeaves(NodeIndex).Sum(leaf => Partitioning.NumDocsInLeaf(leaf)); 42Tree.UpdateOutputWithDelta(~NodeIndex, delta); 56return Tree.GetNodesLeaves(NodeIndex).Select(l => new RegressionTreeNodeDocuments(Tree, Partitioning, ~l)); 63if (NodeIndex < 0) //It is a leaf 65documentsInNode = new HashSet<int>(Partitioning.DocumentsInLeaf(~NodeIndex)); 70foreach (var leaf in Tree.GetNodesLeaves(NodeIndex)) 103LteNode = new RecursiveRegressionTree(Tree, Partitioning, Tree.GetLteChildForNode(NodeIndex)); 104GtNode = new RecursiveRegressionTree(Tree, Partitioning, Tree.GetGtChildForNode(NodeIndex)); 116Tree.SetOutput(~NodeIndex, myOutput); 131if (NodeIndex < 0) 132return Tree.GetOutput(~NodeIndex); 151Tree.SetOutput(~NodeIndex, myOutput); 169if (NodeIndex < 0) 171nodeCount = documentCount[~NodeIndex]; 172return Tree.GetOutput(~NodeIndex);