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)
106
var cumulativeLength =
_leafCount
.CumulativeSum<int>().Take(tree.NumLeaves - 1);
110
Contracts.Assert(_documents.Length == _leafBegin[tree.NumLeaves - 1] +
_leafCount
[tree.NumLeaves - 1]);
151
Array.Clear(
_leafCount
, 0,
_leafCount
.Length);
153
_leafCount
[0] = _documents.Length;
182
var randInst = _leafBegin[i] + rand.Next(
_leafCount
[i]);
210
int end = begin +
_leafCount
[leaf];
231
_leafCount
[leaf] = newCount;
233
_leafCount
[gtChildIndex] = gtCount;
256
int end = begin +
_leafCount
[leaf];
279
_leafCount
[leaf] = newCount;
281
_leafCount
[gtChildIndex] = gtCount;
306
leftDocuments = new int[
_leafCount
[leaf]];
309
rightDocuments = new int[
_leafCount
[leaf]];
313
int end = begin +
_leafCount
[leaf];
343
int end = _leafBegin[leaf] +
_leafCount
[leaf];
353
Array.Copy(_documents, _leafBegin[leaf], documents, 0,
_leafCount
[leaf]);
354
return
_leafCount
[leaf];
361
count =
_leafCount
[leaf];
369
public int NumDocsInLeaf(int leaf) { return
_leafCount
[leaf]; }
381
int end = _leafBegin[leaf] +
_leafCount
[leaf];
382
int count = (filterZeros ? 0 :
_leafCount
[leaf]);
419
int end = _leafBegin[leaf] +
_leafCount
[leaf];