1 write to DiscountMap
Microsoft.ML.FastTree (1)
Training\DcgCalculator.cs (1)
36
DiscountMap
= new double[200];
11 references to DiscountMap
Microsoft.ML.FastTree (11)
Training\DcgCalculator.cs (11)
37
for (int i = 0; i <
DiscountMap
.Length; i++)
39
DiscountMap
[i] = 1.0 / Math.Log(2 + i);
244
double dcg = LabelMap[maxLabel1] *
DiscountMap
[0];
246
dcg += LabelMap[maxLabel2] *
DiscountMap
[1];
248
dcg += LabelMap[maxLabel3] *
DiscountMap
[2];
290
double dcg = LabelMap[queryLabels[0]] *
DiscountMap
[0] +
291
LabelMap[queryLabels[1]] *
DiscountMap
[1] +
292
LabelMap[queryLabels[2]] *
DiscountMap
[2];
313
return result *
DiscountMap
[0] / dataset.NumQueries;
353
return LabelMap[argMaxLabel] *
DiscountMap
[0];
422
dcg = dcg + LabelMap[labels[begin + permutation[t]]] *
DiscountMap
[t];