2 writes to DiscountedCumulativeGains
Microsoft.ML.Data (2)
Evaluators\Metrics\RankingMetrics.cs (2)
63DiscountedCumulativeGains = Fetch(RankingEvaluator.Dcg).DenseValues().ToImmutableArray(); 69DiscountedCumulativeGains = dcg.ToImmutableArray();
19 references to DiscountedCumulativeGains
Microsoft.ML.AutoML (4)
API\RankingExperiment.cs (1)
55/// See <see cref="RankingMetrics.DiscountedCumulativeGains"/>.
Experiment\MetricsAgents\RankingMetricsAgent.cs (2)
44return metrics.DiscountedCumulativeGains[Math.Min(metrics.DiscountedCumulativeGains.Count, (int)_dcgTruncationLevel) - 1];
Experiment\Runners\CrossValSummaryRunner.cs (1)
152dcg: GetAverageOfNonNaNScoresInNestedEnumerable(newMetrics.Select(x => x.DiscountedCumulativeGains)),
Microsoft.ML.AutoML.Samples (1)
AutoFit\RankingExperiment.cs (1)
85Console.WriteLine($"DiscountedCumulativeGains: {metrics.DiscountedCumulativeGains}");
Microsoft.ML.AutoML.Tests (3)
AutoFitTests.cs (3)
455Assert.Equal(10, bestRun.ValidationMetrics.DiscountedCumulativeGains.Count); 460Assert.True(bestRun.ValidationMetrics.DiscountedCumulativeGains.Last() > 19); 507Assert.True(model.ValidationMetrics.DiscountedCumulativeGains.Max() > 15);
Microsoft.ML.IntegrationTests (2)
Common.cs (1)
259foreach (var dcg in metrics.DiscountedCumulativeGains)
Validation.cs (1)
91Assert.True(result[i].Metrics.DiscountedCumulativeGains.Max() > 16);
Microsoft.ML.Samples (4)
Dynamic\Trainers\Ranking\FastTree.cs (1)
117metrics.DiscountedCumulativeGains.Select(
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
131metrics.DiscountedCumulativeGains.Select(
Dynamic\Trainers\Ranking\LightGbm.cs (1)
117metrics.DiscountedCumulativeGains.Select(
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
132metrics.DiscountedCumulativeGains.Select(
Microsoft.ML.Transforms (5)
MetricStatistics.cs (3)
283/// Summary statistics for <see cref="RankingMetrics.DiscountedCumulativeGains"/>. 303DiscountedCumulativeGains = MetricsStatisticsUtils.InitializeArray(metrics.DiscountedCumulativeGains.Count); 308MetricsStatisticsUtils.AddToEach(metrics.DiscountedCumulativeGains, DiscountedCumulativeGains);
PermutationFeatureImportanceExtensions.cs (2)
631var dcg = ComputeSequenceDeltas(a.DiscountedCumulativeGains, b.DiscountedCumulativeGains);