2 writes to ConfusionMatrix
Microsoft.ML.Data (2)
Evaluators\Metrics\MulticlassClassificationMetrics.cs (2)
132ConfusionMatrix = MetricWriter.GetConfusionMatrix(host, confusionMatrix, binary: false, perClassLogLoss.Length); 151ConfusionMatrix = confusionMatrix;
20 references to ConfusionMatrix
Microsoft.ML.AutoML (1)
Experiment\Runners\CrossValSummaryRunner.cs (1)
128confusionMatrix: (metricsClosestToAvg as MulticlassClassificationMetrics).ConfusionMatrix);
Microsoft.ML.IntegrationTests (2)
Common.cs (2)
232Assert.NotNull(metrics.ConfusionMatrix); 233AssertConfusionMatrix(metrics.ConfusionMatrix);
Microsoft.ML.Samples (11)
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
138Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
146Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
141Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
151Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
146Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
145Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
155Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
146Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
155Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Microsoft.ML.Tests (6)
Scenarios\Api\Estimators\PredictAndMetadata.cs (6)
95Assert.Equal("Iris-setosa", metrics.ConfusionMatrix.PredictedClassesIndicators[0].ToString()); 96Assert.Equal("Iris-versicolor", metrics.ConfusionMatrix.PredictedClassesIndicators[1].ToString()); 97Assert.Equal("Iris-virginica", metrics.ConfusionMatrix.PredictedClassesIndicators[2].ToString()); 129Assert.Equal("0", metrics2.ConfusionMatrix.PredictedClassesIndicators[0].ToString()); 130Assert.Equal("1", metrics2.ConfusionMatrix.PredictedClassesIndicators[1].ToString()); 131Assert.Equal("2", metrics2.ConfusionMatrix.PredictedClassesIndicators[2].ToString());