31 references to CreatePair
Microsoft.ML.Core.Tests (2)
UnitTests\TestEntryPoints.cs (2)
2184RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Feature, "Features"), 2185RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, "Label"));
Microsoft.ML.Data (21)
Evaluators\AnomalyDetectionEvaluator.cs (2)
598RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, score), 599RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.PredictedLabel, predictedLabel));
Evaluators\BinaryClassifierEvaluator.cs (11)
820RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, score), 821RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Probability, probability), 822RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.PredictedLabel, predictedLabel)); 868RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, score), 869RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Probability, probability), 870RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.PredictedLabel, predictedLabel)); 948RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, score), 949RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.PredictedLabel, predictedLabel)); 994RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, score), 995RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.PredictedLabel, predictedLabel)); 1351cols = AnnotationUtils.Prepend(cols, RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Probability, probCol.Value.Name));
Evaluators\ClusteringEvaluator.cs (1)
71roles.Add(RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, score));
Evaluators\MamlEvaluator.cs (2)
120: StratCols.Select(col => RoleMappedSchema.CreatePair(Strat, col)); 139yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, scoreCol.Name);
Evaluators\MulticlassClassificationEvaluator.cs (2)
559RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, score), 560RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.PredictedLabel, predictedLabel));
Evaluators\RankingEvaluator.cs (1)
262RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, score));
Evaluators\RegressionEvaluator.cs (1)
181RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, score));
Scorers\RowToRowScorerBase.cs (1)
399columns[i] = RoleMappedSchema.CreatePair(role, name);
Microsoft.ML.Ensemble (7)
Selector\SubModelSelector\BaseSubModelSelector.cs (7)
108yield return RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, testSchema.Label.Value.Name); 111yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, scoreCol.Name); 116yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Probability, probCol.Value.Name); 119yield return RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, testSchema.Label.Value.Name); 122yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, scoreCol.Name); 125yield return RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, testSchema.Label.Value.Name); 128yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Score, scoreCol.Name);
Microsoft.ML.Transforms (1)
Dracula\CountTableTransformer.cs (1)
135CheckLabelType(new RoleMappedData(input, roles: RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, _labelColumnName)), out var labelCardinality);