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