59 references to MulticlassClassificationMetric
Microsoft.ML.AutoML (38)
API\AutoMLExperimentExtension.cs (1)
101
public static AutoMLExperiment SetMulticlassClassificationMetric(this AutoMLExperiment experiment,
MulticlassClassificationMetric
metric, string labelColumn = "label", string predictedColumn = "PredictedLabel")
API\MulticlassClassificationExperiment.cs (9)
28
/// <value>The default value is <see cref="
MulticlassClassificationMetric
.MicroAccuracy"/>.</value>
29
public
MulticlassClassificationMetric
OptimizingMetric { get; set; }
44
OptimizingMetric =
MulticlassClassificationMetric
.MicroAccuracy;
448
private double GetMetric(
MulticlassClassificationMetric
metric, MulticlassClassificationMetrics metrics)
452
MulticlassClassificationMetric
.MacroAccuracy => metrics.MacroAccuracy,
453
MulticlassClassificationMetric
.MicroAccuracy => metrics.MicroAccuracy,
454
MulticlassClassificationMetric
.LogLoss => metrics.LogLoss,
455
MulticlassClassificationMetric
.LogLossReduction => metrics.LogLossReduction,
456
MulticlassClassificationMetric
.TopKAccuracy => metrics.TopKAccuracy,
AutoMLExperiment\IMetricManager.cs (11)
75
public
MulticlassClassificationMetric
Metric { get; set; }
83
MulticlassClassificationMetric
.MacroAccuracy => true,
84
MulticlassClassificationMetric
.MicroAccuracy => true,
85
MulticlassClassificationMetric
.LogLoss => false,
86
MulticlassClassificationMetric
.LogLossReduction => false,
87
MulticlassClassificationMetric
.TopKAccuracy => true,
99
MulticlassClassificationMetric
.MacroAccuracy => metric.MacroAccuracy,
100
MulticlassClassificationMetric
.MicroAccuracy => metric.MicroAccuracy,
101
MulticlassClassificationMetric
.LogLoss => metric.LogLoss,
102
MulticlassClassificationMetric
.LogLossReduction => metric.LogLossReduction,
103
MulticlassClassificationMetric
.TopKAccuracy => metric.TopKAccuracy,
Experiment\MetricsAgents\MultiMetricsAgent.cs (12)
12
private readonly
MulticlassClassificationMetric
_optimizingMetric;
15
MulticlassClassificationMetric
optimizingMetric)
30
case
MulticlassClassificationMetric
.MacroAccuracy:
32
case
MulticlassClassificationMetric
.MicroAccuracy:
34
case
MulticlassClassificationMetric
.LogLoss:
36
case
MulticlassClassificationMetric
.LogLossReduction:
38
case
MulticlassClassificationMetric
.TopKAccuracy:
54
case
MulticlassClassificationMetric
.MacroAccuracy:
56
case
MulticlassClassificationMetric
.MicroAccuracy:
58
case
MulticlassClassificationMetric
.LogLoss:
60
case
MulticlassClassificationMetric
.LogLossReduction:
62
case
MulticlassClassificationMetric
.TopKAccuracy:
Experiment\OptimizingMetricInfo.cs (4)
24
private static readonly
MulticlassClassificationMetric
[] _minimizingMulticlassMetrics = new
MulticlassClassificationMetric
[]
26
MulticlassClassificationMetric
.LogLoss,
39
public OptimizingMetricInfo(
MulticlassClassificationMetric
multiMetric)
Utils\BestResultUtil.cs (1)
30
MulticlassClassificationMetric
metric)
Microsoft.ML.AutoML.Samples (1)
Cifar10.cs (1)
43
.SetMulticlassClassificationMetric(
MulticlassClassificationMetric
.MicroAccuracy)
Microsoft.ML.AutoML.Tests (20)
AutoMLExperimentTests.cs (2)
303
.SetMulticlassClassificationMetric(
MulticlassClassificationMetric
.MacroAccuracy, label)
330
.SetMulticlassClassificationMetric(
MulticlassClassificationMetric
.MacroAccuracy, label)
MetricsAgentsTests.cs (17)
65
Assert.Equal(0.1, GetScore(metrics,
MulticlassClassificationMetric
.MicroAccuracy));
66
Assert.Equal(0.2, GetScore(metrics,
MulticlassClassificationMetric
.MacroAccuracy));
67
Assert.Equal(0.3, GetScore(metrics,
MulticlassClassificationMetric
.LogLoss));
68
Assert.Equal(0.4, GetScore(metrics,
MulticlassClassificationMetric
.LogLossReduction));
69
Assert.Equal(0.5, GetScore(metrics,
MulticlassClassificationMetric
.TopKAccuracy));
76
Assert.False(IsPerfectModel(metrics,
MulticlassClassificationMetric
.MacroAccuracy));
77
Assert.False(IsPerfectModel(metrics,
MulticlassClassificationMetric
.MicroAccuracy));
78
Assert.False(IsPerfectModel(metrics,
MulticlassClassificationMetric
.LogLoss));
79
Assert.False(IsPerfectModel(metrics,
MulticlassClassificationMetric
.LogLossReduction));
80
Assert.False(IsPerfectModel(metrics,
MulticlassClassificationMetric
.TopKAccuracy));
87
Assert.True(IsPerfectModel(metrics,
MulticlassClassificationMetric
.MicroAccuracy));
88
Assert.True(IsPerfectModel(metrics,
MulticlassClassificationMetric
.MacroAccuracy));
89
Assert.True(IsPerfectModel(metrics,
MulticlassClassificationMetric
.LogLoss));
90
Assert.True(IsPerfectModel(metrics,
MulticlassClassificationMetric
.LogLossReduction));
91
Assert.True(IsPerfectModel(metrics,
MulticlassClassificationMetric
.TopKAccuracy));
172
private static double GetScore(MulticlassClassificationMetrics metrics,
MulticlassClassificationMetric
metric)
193
private static bool IsPerfectModel(MulticlassClassificationMetrics metrics,
MulticlassClassificationMetric
metric)
Utils\TaskAgnosticAutoFit.cs (1)
56
OptimizingMetric =
MulticlassClassificationMetric
.MicroAccuracy,