1 instantiation of RankingMetrics
Microsoft.ML.Data (1)
Evaluators\RankingEvaluator.cs (1)
273
result = new
RankingMetrics
(Host, cursor);
65 references to RankingMetrics
Microsoft.ML.AutoML (19)
API\RankingExperiment.cs (11)
51
/// See <see cref="
RankingMetrics
.NormalizedDiscountedCumulativeGains"/>.
55
/// See <see cref="
RankingMetrics
.DiscountedCumulativeGains"/>.
86
public static RunDetail<
RankingMetrics
> Best(this IEnumerable<RunDetail<
RankingMetrics
>> results, RankingMetric metric = RankingMetric.Ndcg, uint optimizationMetricTruncationLevel = 10)
100
public static CrossValidationRunDetail<
RankingMetrics
> Best(this IEnumerable<CrossValidationRunDetail<
RankingMetrics
>> results, RankingMetric metric = RankingMetric.Ndcg, uint optimizationMetricTruncationLevel = 10)
117
public sealed class RankingExperiment : ExperimentBase<
RankingMetrics
, RankingExperimentSettings>
129
private protected override CrossValidationRunDetail<
RankingMetrics
> GetBestCrossValRun(IEnumerable<CrossValidationRunDetail<
RankingMetrics
>> results)
134
private protected override RunDetail<
RankingMetrics
> GetBestRun(IEnumerable<RunDetail<
RankingMetrics
>> results)
Experiment\MetricsAgents\RankingMetricsAgent.cs (3)
11
internal class RankingMetricsAgent : IMetricsAgent<
RankingMetrics
>
32
public double GetScore(
RankingMetrics
metrics)
69
public
RankingMetrics
EvaluateMetrics(IDataView data, string labelColumn, string groupIdColumn)
Experiment\Runners\CrossValSummaryRunner.cs (3)
146
if (typeof(TMetrics) == typeof(
RankingMetrics
))
148
var newMetrics = metrics.Select(x => x as
RankingMetrics
);
151
var
result = new RankingMetrics(
Utils\BestResultUtil.cs (2)
37
public static RunDetail<
RankingMetrics
> GetBestRun(IEnumerable<RunDetail<
RankingMetrics
>> results,
Microsoft.ML.AutoML.Samples (4)
AutoFit\RankingExperiment.cs (4)
30
ExperimentResult<
RankingMetrics
> experimentResult = mlContext.Auto()
40
RunDetail<
RankingMetrics
> bestRun = experimentResult.BestRun;
48
RankingMetrics
testMetrics = mlContext.Ranking.Evaluate(testDataViewWithBestScore, labelColumnName: LabelColumnName);
82
private static void PrintMetrics(
RankingMetrics
metrics)
Microsoft.ML.AutoML.Tests (11)
AutoFitTests.cs (4)
432
ExperimentResult<
RankingMetrics
>[] experimentResults =
453
RunDetail<
RankingMetrics
> bestRun = experimentResults[i].BestRun;
488
CrossValidationExperimentResult<
RankingMetrics
>[] experimentResults =
500
CrossValidationRunDetail<
RankingMetrics
> bestRun = experimentResults[i].BestRun;
MetricsAgentsTests.cs (5)
129
var
metrics = MetricsUtil.CreateRankingMetrics(dcg, ndcg);
145
var
metrics = MetricsUtil.CreateRankingMetrics(dcg, ndcg);
155
var
metrics = MetricsUtil.CreateRankingMetrics(dcg, ndcg);
182
private static double GetScore(
RankingMetrics
metrics, RankingMetric metric, uint dcgTruncationLevel)
205
private static bool IsPerfectModel(
RankingMetrics
metrics, RankingMetric metric, uint dcgTruncationLevel)
MetricsUtil.cs (2)
39
public static
RankingMetrics
CreateRankingMetrics(double[] dcg,
42
return CreateInstance<
RankingMetrics
>(dcg, ndcg);
Microsoft.ML.Data (6)
Evaluators\RankingEvaluator.cs (2)
254
public
RankingMetrics
Evaluate(IDataView data, string label, string groupId, string score)
268
RankingMetrics
result;
TrainCatalog.cs (4)
670
public
RankingMetrics
Evaluate(IDataView data,
684
public
RankingMetrics
Evaluate(IDataView data,
714
public IReadOnlyList<CrossValidationResult<
RankingMetrics
>> CrossValidate(
720
return result.Select(x => new CrossValidationResult<
RankingMetrics
>(x.Model,
Microsoft.ML.IntegrationTests (4)
Common.cs (2)
254
/// Check that a <see cref="
RankingMetrics
"/> object is valid.
257
public static void AssertMetrics(
RankingMetrics
metrics)
Evaluation.cs (2)
197
var
metrics = mlContext.Ranking.Evaluate(scoredData, labelColumnName: "Label", rowGroupColumnName: "GroupId");
216
var
metrics = mlContext.Ranking.Evaluate(scoredData, options, labelColumnName: "Label", rowGroupColumnName: "GroupId");
Microsoft.ML.Samples (8)
Dynamic\Trainers\Ranking\FastTree.cs (2)
63
var
metrics = mlContext.Ranking.Evaluate(transformedTestData);
114
public static void PrintMetrics(
RankingMetrics
metrics)
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (2)
77
var
metrics = mlContext.Ranking.Evaluate(transformedTestData);
128
public static void PrintMetrics(
RankingMetrics
metrics)
Dynamic\Trainers\Ranking\LightGbm.cs (2)
63
var
metrics = mlContext.Ranking.Evaluate(transformedTestData);
114
public static void PrintMetrics(
RankingMetrics
metrics)
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (2)
78
var
metrics = mlContext.Ranking.Evaluate(transformedTestData);
129
public static void PrintMetrics(
RankingMetrics
metrics)
Microsoft.ML.Transforms (13)
MetricStatistics.cs (6)
278
/// statistics over multiple observations of <see cref="
RankingMetrics
"/>.
280
public sealed class RankingMetricsStatistics : IMetricsStatistics<
RankingMetrics
>
283
/// Summary statistics for <see cref="
RankingMetrics
.DiscountedCumulativeGains"/>.
288
/// Summary statistics for <see cref="
RankingMetrics
.NormalizedDiscountedCumulativeGains"/>.
300
void IMetricsStatistics<
RankingMetrics
>.Add(
RankingMetrics
metrics)
PermutationFeatureImportanceExtensions.cs (7)
508
/// <see cref="ImmutableArray"/> of <see cref="
RankingMetrics
"/> objects is returned. See the sample below for an
539
return PermutationFeatureImportance<TModel,
RankingMetrics
, RankingMetricsStatistics>.GetImportanceMetricsMatrix(
573
/// <see cref="ImmutableArray"/> of <see cref="
RankingMetrics
"/> objects is returned. See the sample below for an
613
RankingMetrics
evaluationFunc(IDataView idv) => catalog.Evaluate(idv, labelColumnName, rowGroupColumnName);
628
private static
RankingMetrics
RankingDelta(
629
RankingMetrics
a,
RankingMetrics
b)