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