From 73cbefcf4c45be80183c28cd0ca57a29969ec754 Mon Sep 17 00:00:00 2001 From: John Douglas Leitch Date: Fri, 22 Apr 2022 04:55:38 -0400 Subject: [PATCH] Fixed bug in F# ConsoleHelper printMultiClassClassificationMetrics that caused MacroAccuracy to be displayed where MicroAccuracy is expected. --- samples/fsharp/common/AutoML/ConsoleHelper.fs | 2 +- samples/fsharp/common/ConsoleHelper.fs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/fsharp/common/AutoML/ConsoleHelper.fs b/samples/fsharp/common/AutoML/ConsoleHelper.fs index b3da04846..800aa118f 100644 --- a/samples/fsharp/common/AutoML/ConsoleHelper.fs +++ b/samples/fsharp/common/AutoML/ConsoleHelper.fs @@ -37,7 +37,7 @@ let printMultiClassClassificationMetrics name (metrics : MulticlassClassificatio printfn "* Metrics for %s multi-class classification model " name printfn "*-----------------------------------------------------------" printfn " AccuracyMacro = %.4f, a value between 0 and 1, the closer to 1, the better" metrics.MacroAccuracy - printfn " AccuracyMicro = %.4f, a value between 0 and 1, the closer to 1, the better" metrics.MacroAccuracy + printfn " AccuracyMicro = %.4f, a value between 0 and 1, the closer to 1, the better" metrics.MicroAccuracy printfn " LogLoss = %.4f, the closer to 0, the better" metrics.LogLoss printfn " LogLoss for class 1 = %.4f, the closer to 0, the better" metrics.PerClassLogLoss.[0] printfn " LogLoss for class 2 = %.4f, the closer to 0, the better" metrics.PerClassLogLoss.[1] diff --git a/samples/fsharp/common/ConsoleHelper.fs b/samples/fsharp/common/ConsoleHelper.fs index ff5269d1e..2717d9b3b 100644 --- a/samples/fsharp/common/ConsoleHelper.fs +++ b/samples/fsharp/common/ConsoleHelper.fs @@ -51,7 +51,7 @@ module ConsoleHelper = printfn "* Metrics for %s multi-class classification model " name printfn "*-----------------------------------------------------------" printfn " AccuracyMacro = %.4f, a value between 0 and 1, the closer to 1, the better" metrics.MacroAccuracy - printfn " AccuracyMicro = %.4f, a value between 0 and 1, the closer to 1, the better" metrics.MacroAccuracy + printfn " AccuracyMicro = %.4f, a value between 0 and 1, the closer to 1, the better" metrics.MicroAccuracy printfn " LogLoss = %.4f, the closer to 0, the better" metrics.LogLoss printfn " LogLoss for class 1 = %.4f, the closer to 0, the better" metrics.PerClassLogLoss.[0] printfn " LogLoss for class 2 = %.4f, the closer to 0, the better" metrics.PerClassLogLoss.[1]