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