2 writes to MacroAccuracy
Microsoft.ML.Data (2)
Evaluators\Metrics\MulticlassClassificationMetrics.cs (2)
122MacroAccuracy = FetchDouble(MulticlassClassificationEvaluator.AccuracyMacro); 139MacroAccuracy = accuracyMacro;
48 references to MacroAccuracy
Microsoft.ML.AutoML (5)
API\MulticlassClassificationExperiment.cs (2)
60/// See <see cref="MulticlassClassificationMetrics.MacroAccuracy"/>. 452MulticlassClassificationMetric.MacroAccuracy => metrics.MacroAccuracy,
AutoMLExperiment\IMetricManager.cs (1)
99MulticlassClassificationMetric.MacroAccuracy => metric.MacroAccuracy,
Experiment\MetricsAgents\MultiMetricsAgent.cs (1)
31return metrics.MacroAccuracy;
Experiment\Runners\CrossValSummaryRunner.cs (1)
122accuracyMacro: GetAverageOfNonNaNScores(newMetrics.Select(x => x.MacroAccuracy)),
Microsoft.ML.AutoML.Samples (1)
AutoFit\MulticlassClassificationExperiment.cs (1)
67Console.WriteLine($"MacroAccuracy: {metrics.MacroAccuracy}");
Microsoft.ML.IntegrationTests (1)
Common.cs (1)
226Assert.InRange(metrics.MacroAccuracy, 0, 1);
Microsoft.ML.PerformanceTests (2)
StochasticDualCoordinateAscentClassifierBench.cs (2)
51nameof(MulticlassClassificationMetrics.MacroAccuracy), 52_metrics.MacroAccuracy.ToString("0.##", CultureInfo.InvariantCulture));
Microsoft.ML.Samples (15)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
163$"macro-accuracy = {metrics.MacroAccuracy}");
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
189$"macro-accuracy = {metrics.MacroAccuracy}");
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
187$"macro-accuracy = {metrics.MacroAccuracy}");
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
172$"macro-accuracy = {metrics.MacroAccuracy}");
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
133Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
141Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
136Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
146Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
141Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
134Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
134Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
140Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
150Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
141Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
150Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}");
Microsoft.ML.Samples.GPU (4)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
163$"macro-accuracy = {metrics.MacroAccuracy}");
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
189$"macro-accuracy = {metrics.MacroAccuracy}");
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
187$"macro-accuracy = {metrics.MacroAccuracy}");
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
172$"macro-accuracy = {metrics.MacroAccuracy}");
Microsoft.ML.TensorFlow.Tests (9)
TensorflowTests.cs (9)
678Assert.Equal(0.93, metrics.MacroAccuracy, 0.01); 731Assert.InRange(metrics.MacroAccuracy, expectedMacroAccruacy, 1); 853Assert.InRange(metrics.MacroAccuracy, expectedMacroAccuracy - 0.1, expectedMacroAccuracy + 0.1); 903Assert.Equal(.93, metrics.MacroAccuracy, 0.01); 1437Assert.InRange(metrics.MacroAccuracy, 0.8, 1); 1540Assert.InRange(metrics.MacroAccuracy, 0.8, 1); 1699Assert.InRange(metrics.MacroAccuracy, 0.8, 1); 1829Assert.InRange(metrics.MacroAccuracy, 0.8, 1); 1902Assert.InRange(metrics.MacroAccuracy, 0.3, 1);
Microsoft.ML.Tests (6)
Scenarios\IrisPlantClassificationTests.cs (1)
90Assert.Equal(.98, metrics.MacroAccuracy);
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (1)
92Assert.Equal(.98, metrics.MacroAccuracy);
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
95Assert.Equal(.98, metrics.MacroAccuracy);
TrainerEstimators\SdcaTests.cs (1)
323Assert.InRange(metrics.MacroAccuracy, 0.8, 1);
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (1)
813Assert.True(metrics.MacroAccuracy > 0.6);
TrainerEstimators\TreeEstimators.cs (1)
785Assert.True(metrics.MacroAccuracy > 0.8);
Microsoft.ML.TorchSharp.Tests (1)
TextClassificationTests.cs (1)
183Assert.True(metrics.MacroAccuracy > .69);
Microsoft.ML.Transforms (4)
MetricStatistics.cs (2)
220/// Summary statistics for <see cref="MulticlassClassificationMetrics.MacroAccuracy"/>. 264MacroAccuracy.Add(metrics.MacroAccuracy);
PermutationFeatureImportanceExtensions.cs (2)
475accuracyMacro: a.MacroAccuracy - b.MacroAccuracy,