1 write to _hist
Microsoft.ML.FastTree (1)
Dataset\SingletonFeatureFlock.cs (1)
117
_hist
= new FeatureHistogram(_flock._bins, _flock._binUpperBounds.Length, hasWeights);
17 references to _hist
Microsoft.ML.FastTree (17)
Dataset\SingletonFeatureFlock.cs (17)
122
_hist
.Subtract(other.
_hist
);
133
_hist
.SumupWeighted(numDocsInLeaf, sumTargets, sumWeights, outputs, weights, docIndices);
138
return FeatureHistogram.EstimateMemoryUsedForFeatureHistogram(
_hist
.NumFeatureValues,
139
_hist
.SumWeightsByBin != null);
144
return
_hist
.NumFeatureValues - 1;
154
if (
_hist
.SumWeightsByBin != null)
155
return new PerBinStats(
_hist
.SumTargetsByBin[featureIndex],
_hist
.SumWeightsByBin[featureIndex],
_hist
.CountByBin[featureIndex]);
157
return new PerBinStats(
_hist
.SumTargetsByBin[featureIndex], 0,
_hist
.CountByBin[featureIndex]);
162
if (
_hist
.SumWeightsByBin != null)
163
return
_hist
.SumTargetsByBin[featureIndex] / (
_hist
.SumWeightsByBin[featureIndex] + bias);
165
return
_hist
.SumTargetsByBin[featureIndex] / (
_hist
.CountByBin[featureIndex] + bias);