1 write to SumWeightsByBin
Microsoft.ML.FastTree (1)
Dataset\FeatureHistogram.cs (1)
46SumWeightsByBin = new double[NumFeatureValues];
41 references to SumWeightsByBin
Microsoft.ML.FastTree (41)
Dataset\DenseIntArray.cs (7)
94fixed (double* pSumWeightsByBin = histogram.SumWeightsByBin) 195if (histogram.SumWeightsByBin != null) 196histogram.SumWeightsByBin[0] = input.SumWeights; 316if (histogram.SumWeightsByBin != null) 317histogram.SumWeightsByBin[fval] += weights[i]; 340if (histogram.SumWeightsByBin != null) 342fixed (double* pSumWeightsByBin = histogram.SumWeightsByBin)
Dataset\FeatureFlock.cs (5)
1272Hist.SumWeightsByBin != null) + sizeof(int) + 2 * sizeof(double); 1287if (Hist.SumWeightsByBin != null) 1288return new PerBinStats(Hist.SumTargetsByBin[featureIndex], Hist.SumWeightsByBin[featureIndex], Hist.CountByBin[featureIndex]); 1295if (Hist.SumWeightsByBin != null) 1296return Hist.SumTargetsByBin[featureIndex] / (Hist.SumWeightsByBin[featureIndex] + bias);
Dataset\FeatureHistogram.cs (5)
78fixed (double* pSumWeightsByBin = SumWeightsByBin) 79fixed (double* pChildSumWeightsByBin = child.SumWeightsByBin) 119if (SumWeightsByBin != null) 121Array.Clear(SumWeightsByBin, 0, SumWeightsByBin.Length);
Dataset\IntArray.cs (4)
221Contracts.Assert((input.Weights == null) == (histogram.SumWeightsByBin == null)); 222if (histogram.SumWeightsByBin != null) 245Contracts.AssertValue(histogram.SumWeightsByBin); 259histogram.SumWeightsByBin[featureBin] += input.Weights[i];
Dataset\RepeatIntArray.cs (4)
225fixed (double* pSumWeightsFixed = histogram.SumWeightsByBin) 262fixed (double* pSumWeightsFixed = histogram.SumWeightsByBin) 277double subweightsum = histogram.SumWeightsByBin[bin]; 285histogram.SumWeightsByBin[bin] = subweightsum;
Dataset\SegmentIntArray.cs (1)
556fixed (double* pSumWeightsByBin = histogram.SumWeightsByBin)
Dataset\SingletonFeatureFlock.cs (5)
139_hist.SumWeightsByBin != null); 154if (_hist.SumWeightsByBin != null) 155return new PerBinStats(_hist.SumTargetsByBin[featureIndex], _hist.SumWeightsByBin[featureIndex], _hist.CountByBin[featureIndex]); 162if (_hist.SumWeightsByBin != null) 163return _hist.SumTargetsByBin[featureIndex] / (_hist.SumWeightsByBin[featureIndex] + bias);
Dataset\SparseIntArray.cs (10)
280if (histogram.SumWeightsByBin != null) 307Contracts.Assert(histogram.SumWeightsByBin != null); 322histogram.SumWeightsByBin[featureBin] = (FloatType)(histogram.SumWeightsByBin[featureBin] + weight); 329histogram.SumWeightsByBin[0] += (FloatType)(input.SumWeights - totalWeight); 338if (histogram.SumWeightsByBin != null) 398Contracts.Assert(histogram.SumWeightsByBin != null); 434histogram.SumWeightsByBin[featureBin] += weights; 454histogram.SumWeightsByBin[0] += (FloatType)(input.SumWeights - totalWeights); 505fixed (double* pSumWeightsByBin = histogram.SumWeightsByBin)