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