2 writes to _leafCount
Microsoft.ML.FastTree (2)
Training\DocumentPartitioning.cs (2)
38_leafCount = new int[maxLeaves]; 100_leafCount = Enumerable.Range(0, tree.NumLeaves)
23 references to _leafCount
Microsoft.ML.FastTree (23)
Training\DocumentPartitioning.cs (23)
106var cumulativeLength = _leafCount.CumulativeSum<int>().Take(tree.NumLeaves - 1); 110Contracts.Assert(_documents.Length == _leafBegin[tree.NumLeaves - 1] + _leafCount[tree.NumLeaves - 1]); 151Array.Clear(_leafCount, 0, _leafCount.Length); 153_leafCount[0] = _documents.Length; 182var randInst = _leafBegin[i] + rand.Next(_leafCount[i]); 210int end = begin + _leafCount[leaf]; 231_leafCount[leaf] = newCount; 233_leafCount[gtChildIndex] = gtCount; 256int end = begin + _leafCount[leaf]; 279_leafCount[leaf] = newCount; 281_leafCount[gtChildIndex] = gtCount; 306leftDocuments = new int[_leafCount[leaf]]; 309rightDocuments = new int[_leafCount[leaf]]; 313int end = begin + _leafCount[leaf]; 343int end = _leafBegin[leaf] + _leafCount[leaf]; 353Array.Copy(_documents, _leafBegin[leaf], documents, 0, _leafCount[leaf]); 354return _leafCount[leaf]; 361count = _leafCount[leaf]; 369public int NumDocsInLeaf(int leaf) { return _leafCount[leaf]; } 381int end = _leafBegin[leaf] + _leafCount[leaf]; 382int count = (filterZeros ? 0 : _leafCount[leaf]); 419int end = _leafBegin[leaf] + _leafCount[leaf];