1 write to Ranking
Microsoft.ML.Data (1)
MLContext.cs (1)
154Ranking = new RankingCatalog(_env);
35 references to Ranking
Microsoft.ML.AutoML (3)
Experiment\MetricsAgents\RankingMetricsAgent.cs (1)
76return _mlContext.Ranking.Evaluate(data, rankingEvalOptions, labelColumn, groupIdColumn);
TrainerExtensions\RankingTrainerExtensions.cs (2)
27return mlContext.Ranking.Trainers.LightGbm(options); 49return mlContext.Ranking.Trainers.FastTree(options);
Microsoft.ML.AutoML.Samples (1)
AutoFit\RankingExperiment.cs (1)
48RankingMetrics testMetrics = mlContext.Ranking.Evaluate(testDataViewWithBestScore, labelColumnName: LabelColumnName);
Microsoft.ML.IntegrationTests (5)
Evaluation.cs (3)
177.Append(mlContext.Ranking.Trainers.FastTree(new FastTreeRankingTrainer.Options { NumberOfThreads = 1 })); 197var metrics = mlContext.Ranking.Evaluate(scoredData, labelColumnName: "Label", rowGroupColumnName: "GroupId"); 216var metrics = mlContext.Ranking.Evaluate(scoredData, options, labelColumnName: "Label", rowGroupColumnName: "GroupId");
Validation.cs (2)
71var trainer = mlContext.Ranking.Trainers.FastTree(new FastTreeRankingTrainer.Options() 87var result = mlContext.Ranking.CrossValidate(trainDataView, trainingPipeline, numberOfFolds: numFolds);
Microsoft.ML.Samples (12)
Dynamic\Trainers\Ranking\FastTree.cs (2)
30var pipeline = mlContext.Ranking.Trainers.FastTree(); 63var metrics = mlContext.Ranking.Evaluate(transformedTestData);
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (2)
44var pipeline = mlContext.Ranking.Trainers.FastTree(options); 77var metrics = mlContext.Ranking.Evaluate(transformedTestData);
Dynamic\Trainers\Ranking\LightGbm.cs (2)
30var pipeline = mlContext.Ranking.Trainers.LightGbm(); 63var metrics = mlContext.Ranking.Evaluate(transformedTestData);
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (2)
45var pipeline = mlContext.Ranking.Trainers.LightGbm(options); 78var metrics = mlContext.Ranking.Evaluate(transformedTestData);
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (2)
33.Append(mlContext.Ranking.Trainers.FastTree()); 46var permutationMetrics = mlContext.Ranking.PermutationFeatureImportance(
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (2)
35.Append(mlContext.Ranking.Trainers.FastTree()); 53var permutationMetrics = mlContext.Ranking.PermutationFeatureImportance(
Microsoft.ML.Tests (14)
FeatureContributionTests.cs (2)
110TestFeatureContribution(ML.Ranking.Trainers.FastTree(), GetSparseDataset(TaskType.Ranking, 100), "FastTreeRanking"); 116TestFeatureContribution(ML.Ranking.Trainers.LightGbm(), GetSparseDataset(TaskType.Ranking, 100), "LightGbmRanking");
PermutationFeatureImportanceTests.cs (10)
676var model = ML.Ranking.Trainers.FastTree().Fit(data); 694pfi = ML.Ranking.PermutationFeatureImportance(castedModel, data); 695pfiDict = ml2.Ranking.PermutationFeatureImportance(loadedModel, data); 703pfi = ML.Ranking.PermutationFeatureImportance(model, data); 704pfiDict = ml2.Ranking.PermutationFeatureImportance((ITransformer)model, data); 745var model = ML.Ranking.Trainers.FastTree().Fit(data); 762pfi = ML.Ranking.PermutationFeatureImportance(castedModel, data); 763pfiDict = ml2.Ranking.PermutationFeatureImportance(loadedModel, data); 771pfi = ML.Ranking.PermutationFeatureImportance(model, data); 772pfiDict = ml2.Ranking.PermutationFeatureImportance((ITransformer)model, data);
TrainerEstimators\TreeEstimators.cs (2)
175var trainer = ML.Ranking.Trainers.FastTree( 199var trainer = ML.Ranking.Trainers.LightGbm(new LightGbmRankingTrainer.Options() { LabelColumnName = "Label0", FeatureColumnName = "NumericFeatures", RowGroupColumnName = "Group", LearningRate = 0.4 });