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