Skip to content

Commit 0a06b24

Browse files
committed
Merge branch 'auto-ml-dcgtruncation' of https://github.com/michaelgsharp/machinelearning into auto-ml-dcgtruncation
2 parents ed6885d + d43e58b commit 0a06b24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Microsoft.ML.AutoML/Experiment/MetricsAgents/RankingMetricsAgent.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ public RankingMetricsAgent(MLContext mlContext, RankingMetric metric, uint optim
2222
if (optimizationMetricTruncationLevel <= 0)
2323
throw _mlContext.ExceptUserArg(nameof(optimizationMetricTruncationLevel), "DCG Truncation Level must be greater than 0");
2424

25-
// We want to make sure we always have at least 10 results. Getting extra results adds no measurable performance
26-
// impact, so err on the side of more.
25+
// We want to make sure we always report metrics for at least 10 results (e.g. NDCG@10) to the user.
26+
// Producing extra results adds no measurable performance impact, so we report at least 2x of the
27+
// user's requested optimization truncation level.
2728
_dcgTruncationLevel = optimizationMetricTruncationLevel;
2829
}
2930

0 commit comments

Comments
 (0)