2 instantiations of MulticlassClassificationEvaluator
Microsoft.ML.Data (2)
Evaluators\MulticlassClassificationEvaluator.cs (1)
916
_evaluator = new
MulticlassClassificationEvaluator
(Host, evalArgs);
TrainCatalog.cs (1)
534
var eval = new
MulticlassClassificationEvaluator
(Environment, args);
41 references to MulticlassClassificationEvaluator
Microsoft.ML.Data (41)
EntryPoints\InputBuilder.cs (3)
848
public const string AccuracyMicro = Data.
MulticlassClassificationEvaluator
.AccuracyMicro;
849
public const string AccuracyMacro =
MulticlassClassificationEvaluator
.AccuracyMacro;
852
public const string TopKAccuracy =
MulticlassClassificationEvaluator
.TopKAccuracy;
Evaluators\Metrics\ConfusionMatrix.cs (1)
55
/// the <see cref="
MulticlassClassificationEvaluator
"/> constructor.
Evaluators\Metrics\MulticlassClassificationMetrics.cs (6)
121
MicroAccuracy = FetchDouble(
MulticlassClassificationEvaluator
.AccuracyMicro);
122
MacroAccuracy = FetchDouble(
MulticlassClassificationEvaluator
.AccuracyMacro);
123
LogLoss = FetchDouble(
MulticlassClassificationEvaluator
.LogLoss);
124
LogLossReduction = FetchDouble(
MulticlassClassificationEvaluator
.LogLossReduction);
128
TopKAccuracyForAllK = RowCursorUtils.Fetch<VBuffer<double>>(host, overallResult,
MulticlassClassificationEvaluator
.AllTopKAccuracy).DenseValues().ToImmutableArray();
130
var perClassLogLoss = RowCursorUtils.Fetch<VBuffer<double>>(host, overallResult,
MulticlassClassificationEvaluator
.PerClassLogLoss);
Evaluators\MulticlassClassificationEvaluator.cs (29)
17
[assembly: LoadableClass(typeof(
MulticlassClassificationEvaluator
), typeof(
MulticlassClassificationEvaluator
), typeof(
MulticlassClassificationEvaluator
.Arguments), typeof(SignatureEvaluator),
18
"Multi-Class Classifier Evaluator",
MulticlassClassificationEvaluator
.LoadName, "MultiClassClassifier", "MultiClass")]
21
"Multi-Class Classifier Evaluator",
MulticlassClassificationEvaluator
.LoadName, "MultiClassClassifier", "MultiClass")]
30
internal sealed class MulticlassClassificationEvaluator : RowToRowEvaluatorBase<
MulticlassClassificationEvaluator
.Aggregator>
51
[EnumValueDisplay(
MulticlassClassificationEvaluator
.AccuracyMicro)]
53
[EnumValueDisplay(
MulticlassClassificationEvaluator
.AccuracyMacro)]
55
[EnumValueDisplay(
MulticlassClassificationEvaluator
.LogLoss)]
57
[EnumValueDisplay(
MulticlassClassificationEvaluator
.LogLossReduction)]
893
private readonly
MulticlassClassificationEvaluator
_evaluator;
912
var evalArgs = new
MulticlassClassificationEvaluator
.Arguments
933
fold = DropColumn(fold,
MulticlassClassificationEvaluator
.TopKAccuracy);
938
fold = DropColumn(fold,
MulticlassClassificationEvaluator
.PerClassLogLoss);
964
idv = DropColumn(idv,
MulticlassClassificationEvaluator
.TopKAccuracy);
968
idv = DropColumn(idv,
MulticlassClassificationEvaluator
.PerClassLogLoss);
976
EvaluateUtils.ReconcileSlotNames<double>(Host, views,
MulticlassClassificationEvaluator
.PerClassLogLoss, NumberDataViewType.Double,
986
idv.Schema[col].Name.Equals(
MulticlassClassificationEvaluator
.PerClassLogLoss))
1001
input = new ColumnCopyingTransformer(Host, (string.Format(TopKAccuracyFormat, _outputTopKAcc),
MulticlassClassificationEvaluator
.TopKAccuracy)).Transform(input);
1002
return ColumnSelectingTransformer.CreateDrop(Host, input,
MulticlassClassificationEvaluator
.TopKAccuracy);
1007
input = new ColumnCopyingTransformer(Host, (TopKAccuracyFormat,
MulticlassClassificationEvaluator
.AllTopKAccuracy)).Transform(input);
1008
return ColumnSelectingTransformer.CreateDrop(Host, input,
MulticlassClassificationEvaluator
.AllTopKAccuracy);
1022
yield return new MetricColumn("AccuracyMicro",
MulticlassClassificationEvaluator
.AccuracyMicro);
1023
yield return new MetricColumn("AccuracyMacro",
MulticlassClassificationEvaluator
.AccuracyMacro);
1028
MulticlassClassificationEvaluator
.PerClassLogLoss, MetricColumn.Objective.Minimize, isVector: true,
1029
namePattern: new Regex(string.Format(@"^{0}(?<class>.+)",
MulticlassClassificationEvaluator
.LogLoss), RegexOptions.IgnoreCase));
1031
yield return new MetricColumn("LogLoss",
MulticlassClassificationEvaluator
.LogLoss, MetricColumn.Objective.Minimize);
1032
yield return new MetricColumn("LogLossReduction",
MulticlassClassificationEvaluator
.LogLossReduction);
1033
yield return new MetricColumn("TopKAccuracyForAllK",
MulticlassClassificationEvaluator
.AllTopKAccuracy, isVector: true);
TrainCatalog.cs (2)
531
var args = new
MulticlassClassificationEvaluator
.Arguments() { };
534
var
eval = new MulticlassClassificationEvaluator(Environment, args);