1 write to Hist
Microsoft.ML.FastTree (1)
Dataset\FeatureFlock.cs (1)
1238
Hist
= new FeatureHistogram(_flock.Bins, _flock.HotFeatureStarts[_flock.Count], hasWeights);
17 references to Hist
Microsoft.ML.FastTree (17)
Dataset\FeatureFlock.cs (17)
1243
Hist
.Subtract(other.
Hist
);
1255
Hist
.SumupWeighted(numDocsInLeaf, sumTargets, sumWeights, outputs, weights, docIndices);
1263
Hist
.SumupWeighted(numDocsInLeaf, sumTargets, sumWeights, outputs, weights, docIndices);
1271
return FeatureHistogram.EstimateMemoryUsedForFeatureHistogram(
Hist
.NumFeatureValues,
1272
Hist
.SumWeightsByBin != null) + sizeof(int) + 2 * sizeof(double);
1287
if (
Hist
.SumWeightsByBin != null)
1288
return new PerBinStats(
Hist
.SumTargetsByBin[featureIndex],
Hist
.SumWeightsByBin[featureIndex],
Hist
.CountByBin[featureIndex]);
1290
return new PerBinStats(
Hist
.SumTargetsByBin[featureIndex], 0,
Hist
.CountByBin[featureIndex]);
1295
if (
Hist
.SumWeightsByBin != null)
1296
return
Hist
.SumTargetsByBin[featureIndex] / (
Hist
.SumWeightsByBin[featureIndex] + bias);
1298
return
Hist
.SumTargetsByBin[featureIndex] / (
Hist
.CountByBin[featureIndex] + bias);