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