51 references to Const
Microsoft.ML.Core.Tests (50)
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 (42)
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);
1637
Assert.True(ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.
Const
.ScoreColumnKind.BinaryClassification, kind),
1638
$"Binary ensemble scored data column type should be '{AnnotationUtils.
Const
.ScoreColumnKind.BinaryClassification}', but is instead '{kind}'");
1640
scoreCol = regressionScored.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1645
Assert.True(ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.
Const
.ScoreColumnKind.Regression, kind),
1646
$"Regression ensemble scored data column type should be '{AnnotationUtils.
Const
.ScoreColumnKind.Regression}', but is instead '{kind}'");
1648
scoreCol = anomalyScored.Schema.GetColumnOrNull(AnnotationUtils.
Const
.ScoreValueKind.Score);
1653
Assert.True(ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.
Const
.ScoreColumnKind.AnomalyDetection, kind),
1654
$"Anomaly detection ensemble scored data column type should be '{AnnotationUtils.
Const
.ScoreColumnKind.AnomalyDetection}', but is instead '{kind}'");
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 (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"/>.