25 references to RankingMetric
Microsoft.ML.AutoML (15)
API\RankingExperiment.cs (7)
19
/// <value>The default value is <see cref="
RankingMetric
" />.</value>
20
public
RankingMetric
OptimizingMetric { get; set; }
43
OptimizingMetric =
RankingMetric
.Ndcg;
86
public static RunDetail<RankingMetrics> Best(this IEnumerable<RunDetail<RankingMetrics>> results,
RankingMetric
metric =
RankingMetric
.Ndcg, uint optimizationMetricTruncationLevel = 10)
100
public static CrossValidationRunDetail<RankingMetrics> Best(this IEnumerable<CrossValidationRunDetail<RankingMetrics>> results,
RankingMetric
metric =
RankingMetric
.Ndcg, uint optimizationMetricTruncationLevel = 10)
Experiment\MetricsAgents\RankingMetricsAgent.cs (6)
14
private readonly
RankingMetric
_optimizingMetric;
17
public RankingMetricsAgent(MLContext mlContext,
RankingMetric
metric, uint optimizationMetricTruncationLevel)
41
case
RankingMetric
.Ndcg:
43
case
RankingMetric
.Dcg:
60
case
RankingMetric
.Ndcg:
62
case
RankingMetric
.Dcg:
Experiment\OptimizingMetricInfo.cs (1)
44
public OptimizingMetricInfo(
RankingMetric
rankingMetric)
Utils\BestResultUtil.cs (1)
38
RankingMetric
metric, uint dcgTruncationLevel)
Microsoft.ML.AutoML.Tests (10)
MetricsAgentsTests.cs (10)
130
Assert.Equal(0.4, GetScore(metrics,
RankingMetric
.Dcg, 3));
131
Assert.Equal(0.4, GetScore(metrics,
RankingMetric
.Ndcg, 3));
136
Assert.Equal(0.3, GetScore(metrics,
RankingMetric
.Dcg, 3));
137
Assert.Equal(0.3, GetScore(metrics,
RankingMetric
.Ndcg, 3));
146
Assert.False(IsPerfectModel(metrics,
RankingMetric
.Dcg, 3));
147
Assert.False(IsPerfectModel(metrics,
RankingMetric
.Ndcg, 3));
156
Assert.False(IsPerfectModel(metrics,
RankingMetric
.Dcg, 3)); //REVIEW: No true Perfect model
157
Assert.True(IsPerfectModel(metrics,
RankingMetric
.Ndcg, 3));
182
private static double GetScore(RankingMetrics metrics,
RankingMetric
metric, uint dcgTruncationLevel)
205
private static bool IsPerfectModel(RankingMetrics metrics,
RankingMetric
metric, uint dcgTruncationLevel)