53 references to Const
Microsoft.ML.Core.Tests (52)
UnitTests\ScoreSchemaTest.cs (8)
41
AnnotationUtils.
Const
.ScoreColumnKind.SequenceClassification, keyNames);
48
Assert.Equal(AnnotationUtils.
Const
.ScoreValueKind.PredictedLabel, scoreColumn.Name);
82
Assert.Equal(AnnotationUtils.
Const
.ScoreColumnKind.SequenceClassification, scoreColumnKindValue.ToString());
87
Assert.Equal(AnnotationUtils.
Const
.ScoreValueKind.PredictedLabel, scoreValueKindValue.ToString());
98
AnnotationUtils.
Const
.ScoreColumnKind.SequenceClassification, keyNames);
105
Assert.Equal(AnnotationUtils.
Const
.ScoreValueKind.PredictedLabel, scoreColumn.Name);
129
Assert.Equal(AnnotationUtils.
Const
.ScoreColumnKind.SequenceClassification, scoreColumnKindValue.ToString());
134
Assert.Equal(AnnotationUtils.
Const
.ScoreValueKind.PredictedLabel, scoreValueKindValue.ToString());
UnitTests\TestEntryPoints.cs (44)
439
(AnnotationUtils.
Const
.ScoreValueKind.Score + i).ToString(),
440
AnnotationUtils.
Const
.ScoreValueKind.Score)
443
individualScores[i] = new ColumnSelectingTransformer(Env, null, new[] { AnnotationUtils.
Const
.ScoreValueKind.Score }).Transform(individualScores[i]);
473
var scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
477
scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
481
scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
488
scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score + i);
1568
AnnotationUtils.
Const
.ScoreColumnKind.BinaryClassification));
1574
AnnotationUtils.
Const
.ScoreColumnKind.BinaryClassification));
1671
var scoreCol = binaryScored.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1677
Assert.True(ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.
Const
.ScoreColumnKind.BinaryClassification, kind),
1678
$"Binary ensemble scored data column type should be '{AnnotationUtils.
Const
.ScoreColumnKind.BinaryClassification}', but is instead '{kind}'");
1680
scoreCol = regressionScored.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1685
Assert.True(ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.
Const
.ScoreColumnKind.Regression, kind),
1686
$"Regression ensemble scored data column type should be '{AnnotationUtils.
Const
.ScoreColumnKind.Regression}', but is instead '{kind}'");
1688
scoreCol = anomalyScored.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1693
Assert.True(ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.
Const
.ScoreColumnKind.AnomalyDetection, kind),
1694
$"Anomaly detection ensemble scored data column type should be '{AnnotationUtils.
Const
.ScoreColumnKind.AnomalyDetection}', but is instead '{kind}'");
1724
var scoreColumn = curs0.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1727
scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1730
scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1733
scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1736
scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1739
scoreColumn = cursReg.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1742
scoreColumn = cursBin.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1745
scoreColumn = cursBinCali.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1748
scoreColumn = cursSaved.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1751
scoreColumn = cursAnom.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1950
var scoreColumn = curs0.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1953
scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1956
scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1959
scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1962
scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1965
scoreColumn = cursReg.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1968
scoreColumn = cursBin.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1971
scoreColumn = cursBinCali.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1974
scoreColumn = cursSaved.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
2108
var scoreColumn = curs0.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
2111
scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
2114
scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
2117
scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
2120
scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
2123
scoreColumn = curs.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
2126
scoreColumn = cursSaved.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
Microsoft.ML.Data (1)
Scorers\ScoreSchemaFactory.cs (1)
109
/// This function returns a schema for sequence predictor's output. Its output column is always called <see cref="AnnotationUtils.
Const
.ScoreValueKind.PredictedLabel"/>.