1 write to CountByBin
Microsoft.ML.FastTree (1)
Dataset\FeatureHistogram.cs (1)
44CountByBin = new int[NumFeatureValues];
28 references to CountByBin
Microsoft.ML.FastTree (28)
Dataset\DenseIntArray.cs (4)
97fixed (int* pCountByBin = histogram.CountByBin) 197histogram.CountByBin[0] = input.TotalCount; 318++histogram.CountByBin[fval]; 335fixed (int* pCountByBin = histogram.CountByBin)
Dataset\FeatureFlock.cs (3)
1288return new PerBinStats(Hist.SumTargetsByBin[featureIndex], Hist.SumWeightsByBin[featureIndex], Hist.CountByBin[featureIndex]); 1290return new PerBinStats(Hist.SumTargetsByBin[featureIndex], 0, Hist.CountByBin[featureIndex]); 1298return Hist.SumTargetsByBin[featureIndex] / (Hist.CountByBin[featureIndex] + bias);
Dataset\FeatureHistogram.cs (4)
80fixed (int* pTotalCountByBin = CountByBin) 81fixed (int* pChildTotalCountByBin = child.CountByBin) 124Array.Clear(CountByBin, 0, CountByBin.Length);
Dataset\IntArray.cs (2)
239++histogram.CountByBin[featureBin]; 260++histogram.CountByBin[featureBin];
Dataset\RepeatIntArray.cs (2)
247histogram.CountByBin[featureBin] += _deltas[i]; 297histogram.CountByBin[bin] += count;
Dataset\SegmentIntArray.cs (1)
562fixed (int* pCountByBin = histogram.CountByBin)
Dataset\SingletonFeatureFlock.cs (3)
155return new PerBinStats(_hist.SumTargetsByBin[featureIndex], _hist.SumWeightsByBin[featureIndex], _hist.CountByBin[featureIndex]); 157return new PerBinStats(_hist.SumTargetsByBin[featureIndex], 0, _hist.CountByBin[featureIndex]); 165return _hist.SumTargetsByBin[featureIndex] / (_hist.CountByBin[featureIndex] + bias);
Dataset\SparseIntArray.cs (9)
296++histogram.CountByBin[featureBin]; 301histogram.CountByBin[0] += input.TotalCount - _values.Length; 323++histogram.CountByBin[featureBin]; 330histogram.CountByBin[0] += input.TotalCount - _values.Length; 373++histogram.CountByBin[featureBin]; 393histogram.CountByBin[0] += input.TotalCount - totalCount; 436++histogram.CountByBin[featureBin]; 455histogram.CountByBin[0] += input.TotalCount - totalCount; 508fixed (int* pCountByBin = histogram.CountByBin)