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