2 writes to _leafBegin
Microsoft.ML.FastTree (2)
Training\DocumentPartitioning.cs (2)
37_leafBegin = new int[maxLeaves]; 107_leafBegin = Enumerable.Range(0, 1).Concat(cumulativeLength).ToArray();
19 references to _leafBegin
Microsoft.ML.FastTree (19)
Training\DocumentPartitioning.cs (19)
110Contracts.Assert(_documents.Length == _leafBegin[tree.NumLeaves - 1] + _leafCount[tree.NumLeaves - 1]); 118int documentPos = _leafBegin[l]; 152_leafBegin[0] = 0; 182var randInst = _leafBegin[i] + rand.Next(_leafCount[i]); 209int begin = _leafBegin[leaf]; 232_leafBegin[gtChildIndex] = newEnd; 255int begin = _leafBegin[leaf]; 280_leafBegin[gtChildIndex] = newEnd; 312int begin = _leafBegin[leaf]; 342int index = _leafBegin[leaf]; 343int end = _leafBegin[leaf] + _leafCount[leaf]; 353Array.Copy(_documents, _leafBegin[leaf], documents, 0, _leafCount[leaf]); 360begin = _leafBegin[leaf]; 381int end = _leafBegin[leaf] + _leafCount[leaf]; 386for (int i = _leafBegin[leaf]; i < end; ++i) 398for (int i = _leafBegin[leaf]; i < end; ++i) 419int end = _leafBegin[leaf] + _leafCount[leaf]; 424for (int i = _leafBegin[leaf]; i < end; ++i) 437for (int i = _leafBegin[leaf]; i < end; ++i)