2 writes to NormalizedDiscountedCumulativeGains
Microsoft.ML.Data (2)
Evaluators\Metrics\RankingMetrics.cs (2)
64NormalizedDiscountedCumulativeGains = Fetch(RankingEvaluator.Ndcg).DenseValues().ToImmutableArray(); 70NormalizedDiscountedCumulativeGains = ndcg.ToImmutableArray();
19 references to NormalizedDiscountedCumulativeGains
Microsoft.ML.AutoML (4)
API\RankingExperiment.cs (1)
51/// See <see cref="RankingMetrics.NormalizedDiscountedCumulativeGains"/>.
Experiment\MetricsAgents\RankingMetricsAgent.cs (2)
42return metrics.NormalizedDiscountedCumulativeGains[Math.Min(metrics.NormalizedDiscountedCumulativeGains.Count, (int)_dcgTruncationLevel) - 1];
Experiment\Runners\CrossValSummaryRunner.cs (1)
153ndcg: GetAverageOfNonNaNScoresInNestedEnumerable(newMetrics.Select(x => x.NormalizedDiscountedCumulativeGains)));
Microsoft.ML.AutoML.Samples (1)
AutoFit\RankingExperiment.cs (1)
84Console.WriteLine($"NormalizedDiscountedCumulativeGains: {metrics.NormalizedDiscountedCumulativeGains}");
Microsoft.ML.AutoML.Tests (3)
AutoFitTests.cs (3)
456Assert.Equal(10, bestRun.ValidationMetrics.NormalizedDiscountedCumulativeGains.Count); 459Assert.True(bestRun.ValidationMetrics.NormalizedDiscountedCumulativeGains.Last() > 0.4); 506Assert.True(model.ValidationMetrics.NormalizedDiscountedCumulativeGains.Max() > 0.31);
Microsoft.ML.IntegrationTests (2)
Common.cs (1)
261foreach (var ndcg in metrics.NormalizedDiscountedCumulativeGains)
Validation.cs (1)
90Assert.True(result[i].Metrics.NormalizedDiscountedCumulativeGains.Max() > .4);
Microsoft.ML.Samples (4)
Dynamic\Trainers\Ranking\FastTree.cs (1)
121metrics.NormalizedDiscountedCumulativeGains.Select(
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
134metrics.NormalizedDiscountedCumulativeGains.Select(
Dynamic\Trainers\Ranking\LightGbm.cs (1)
120metrics.NormalizedDiscountedCumulativeGains.Select(
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
135metrics.NormalizedDiscountedCumulativeGains.Select(
Microsoft.ML.Transforms (5)
MetricStatistics.cs (3)
288/// Summary statistics for <see cref="RankingMetrics.NormalizedDiscountedCumulativeGains"/>. 306NormalizedDiscountedCumulativeGains = MetricsStatisticsUtils.InitializeArray(metrics.NormalizedDiscountedCumulativeGains.Count); 309MetricsStatisticsUtils.AddToEach(metrics.NormalizedDiscountedCumulativeGains, NormalizedDiscountedCumulativeGains);
PermutationFeatureImportanceExtensions.cs (2)
632var ndcg = ComputeSequenceDeltas(a.NormalizedDiscountedCumulativeGains, b.NormalizedDiscountedCumulativeGains);