128 references to ScoreValueKind
Microsoft.ML.Core.Tests (40)
UnitTests\ScoreSchemaTest.cs (4)
48
Assert.Equal(AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel, scoreColumn.Name);
87
Assert.Equal(AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel, scoreValueKindValue.ToString());
105
Assert.Equal(AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel, scoreColumn.Name);
134
Assert.Equal(AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel, scoreValueKindValue.ToString());
UnitTests\TestEntryPoints.cs (36)
438
(AnnotationUtils.Const.
ScoreValueKind
.Score + i).ToString(),
439
AnnotationUtils.Const.
ScoreValueKind
.Score)
442
individualScores[i] = new ColumnSelectingTransformer(Env, null, new[] { AnnotationUtils.Const.
ScoreValueKind
.Score }).Transform(individualScores[i]);
472
var scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
476
scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
480
scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
487
scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score + i);
1631
var scoreCol = binaryScored.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1640
scoreCol = regressionScored.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1648
scoreCol = anomalyScored.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1684
var scoreColumn = curs0.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1687
scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1690
scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1693
scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1696
scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1699
scoreColumn = cursReg.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1702
scoreColumn = cursBin.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1705
scoreColumn = cursBinCali.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1708
scoreColumn = cursSaved.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1711
scoreColumn = cursAnom.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1910
var scoreColumn = curs0.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1913
scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1916
scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1919
scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1922
scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1925
scoreColumn = cursReg.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1928
scoreColumn = cursBin.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1931
scoreColumn = cursBinCali.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
1934
scoreColumn = cursSaved.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
2068
var scoreColumn = curs0.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
2071
scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
2074
scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
2077
scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
2080
scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
2083
scoreColumn = curs.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
2086
scoreColumn = cursSaved.Schema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
Microsoft.ML.Data (77)
Evaluators\AnomalyDetectionEvaluator.cs (4)
97
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
507
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
598
RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Score, score),
599
RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel, predictedLabel));
Evaluators\BinaryClassifierEvaluator.cs (20)
128
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
141
var prob = schema.GetColumns(AnnotationUtils.Const.
ScoreValueKind
.Probability);
161
var prob = schema.GetColumns(AnnotationUtils.Const.
ScoreValueKind
.Probability);
195
var scoreInfo = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
197
var probInfos = schema.GetColumns(AnnotationUtils.Const.
ScoreValueKind
.Probability);
625
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
632
var prob = schema.GetColumns(new RoleMappedSchema.ColumnRole(AnnotationUtils.Const.
ScoreValueKind
.Probability));
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));
1349
scoreCol.Index, AnnotationUtils.Const.
ScoreValueKind
.Probability, NumberDataViewType.Single.Equals);
1351
cols = AnnotationUtils.Prepend(cols, RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Probability, probCol.Value.Name));
1483
scoreCol.Index, AnnotationUtils.Const.
ScoreValueKind
.Probability, NumberDataViewType.Single.Equals);
Evaluators\ClusteringEvaluator.cs (5)
71
roles.Add(RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Score, score));
106
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
138
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
147
var scoreInfo = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
499
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
Evaluators\EvaluatorBase.cs (1)
93
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
Evaluators\EvaluatorUtils.cs (1)
109
string valueKind = AnnotationUtils.Const.
ScoreValueKind
.Score, string defName = null)
Evaluators\MamlEvaluator.cs (1)
139
yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Score, scoreCol.Name);
Evaluators\MulticlassClassificationEvaluator.cs (8)
77
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
89
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
100
var scoreInfo = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
111
var score = schema.GetColumns(AnnotationUtils.Const.
ScoreValueKind
.Score);
123
var scoreInfo = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
417
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
559
RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Score, score),
560
RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel, predictedLabel));
Evaluators\MultiOutputRegressionEvaluator.cs (5)
53
var scoreCol = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
60
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
72
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
307
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
590
dst = AnnotationUtils.Const.
ScoreValueKind
.Score.AsMemory();
Evaluators\QuantileRegressionEvaluator.cs (3)
45
var scoreInfo = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
58
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
70
var scoreInfo = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
Evaluators\RankingEvaluator.cs (4)
104
var scoreCol = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
138
var scoreInfo = data.Schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
262
RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Score, score));
458
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
Evaluators\RegressionEvaluator.cs (3)
57
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
75
var scoreInfo = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
181
RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Score, score));
Evaluators\RegressionEvaluatorBase.cs (1)
205
var score = schema.GetUniqueColumn(AnnotationUtils.Const.
ScoreValueKind
.Score);
Prediction\Calibrator.cs (2)
666
if (!_predictor.OutputSchema.TryGetColumnIndex(AnnotationUtils.Const.
ScoreValueKind
.Score, out _scoreCol))
881
if (!outputSchema.TryGetColumnIndex(AnnotationUtils.Const.
ScoreValueKind
.Score, out scoreCol))
Scorers\BinaryClassifierScorer.cs (1)
97
if (!mapper.OutputSchema.TryGetColumnIndex(AnnotationUtils.Const.
ScoreValueKind
.Score, out scoreIdx))
Scorers\ClusteringScorer.cs (1)
47
AnnotationUtils.Const.
ScoreValueKind
.Score, OutputTypeMatches, GetPredColType)
Scorers\MulticlassClassificationScorer.cs (5)
39
public string ScoreColumnName = AnnotationUtils.Const.
ScoreValueKind
.Score;
296
bool result = mapper.OutputSchema.TryGetColumnIndex(AnnotationUtils.Const.
ScoreValueKind
.Score, out scoreIdx);
298
throw env.ExceptParam(nameof(mapper), "Mapper did not have a '{0}' column", AnnotationUtils.Const.
ScoreValueKind
.Score);
456
var scoreCol = outSchema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
457
if (!outSchema.TryGetColumnIndex(AnnotationUtils.Const.
ScoreValueKind
.Score, out scoreIdx))
Scorers\PredictedLabelScorerBase.cs (2)
28
public string ThresholdColumn = AnnotationUtils.Const.
ScoreValueKind
.Score;
256
dst = AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel.AsMemory();
Scorers\PredictionTransformer.cs (2)
485
string scoreColumn = AnnotationUtils.Const.
ScoreValueKind
.Score, string predictedLabel = DefaultColumnNames.PredictedLabel) :
523
scoreColumn = AnnotationUtils.Const.
ScoreValueKind
.Score;
Scorers\ScoreSchemaFactory.cs (8)
23
public static DataViewSchema Create(DataViewType scoreType, string scoreColumnKindValue, string scoreColumnName = AnnotationUtils.Const.
ScoreValueKind
.Score)
33
(ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.
ScoreValueKind
.Score.AsMemory(); });
50
public static DataViewSchema CreateBinaryClassificationSchema(string scoreColumnName = AnnotationUtils.Const.
ScoreValueKind
.Score,
51
string probabilityColumnName = AnnotationUtils.Const.
ScoreValueKind
.Probability)
66
(ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.
ScoreValueKind
.Probability.AsMemory(); });
109
/// This function returns a schema for sequence predictor's output. Its output column is always called <see cref="AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel"/>.
130
(ref ReadOnlyMemory<char> value) => value = AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel.AsMemory());
134
schemaBuilder.AddColumn(AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel, scoreType, metadataBuilder.ToAnnotations());
Microsoft.ML.Ensemble (6)
PipelineEnsemble.cs (1)
77
var scoreCol = Mappers[i].OutputSchema.GetColumnOrNull(AnnotationUtils.Const.
ScoreValueKind
.Score);
Selector\SubModelSelector\BaseSubModelSelector.cs (5)
111
yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Score, scoreCol.Name);
114
scoreCol.Index, AnnotationUtils.Const.
ScoreValueKind
.Probability, NumberDataViewType.Single.Equals);
116
yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Probability, probCol.Value.Name);
122
yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Score, scoreCol.Name);
128
yield return RoleMappedSchema.CreatePair(AnnotationUtils.Const.
ScoreValueKind
.Score, scoreCol.Name);
Microsoft.ML.EntryPoints (1)
ScoreColumnSelector.cs (1)
95
&& ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.Const.
ScoreValueKind
.PredictedLabel, tmp))
Microsoft.ML.FastTree (1)
GamModelParameters.cs (1)
684
new RoleMappedSchema.ColumnRole(AnnotationUtils.Const.
ScoreValueKind
.Score).Bind(DefaultColumnNames.Score));
Microsoft.ML.TorchSharp (3)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
761
meta.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.
ScoreValueKind
.Score.AsMemory(); });
NasBert\NasBertTrainer.cs (1)
527
meta.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.
ScoreValueKind
.Score.AsMemory(); });
Roberta\QATrainer.cs (1)
743
meta.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.
ScoreValueKind
.Score.AsMemory(); });