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