Skip to content

Commit

Permalink
fixed again? (#32)
Browse files Browse the repository at this point in the history
* fixed again?

* fix
  • Loading branch information
Szer authored Jul 21, 2024
1 parent d0005cb commit c8893f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/VahterBanBot/ML.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ type MachineLearning(
) =
let metricsToString(metrics: CalibratedBinaryClassificationMetrics) (duration: TimeSpan) =
let sb = StringBuilder()
let formattedTable = metrics.ConfusionMatrix.GetFormattedConfusionTable().Replace(".", "\\.")
%sb.AppendLine($"Model trained in {duration.TotalSeconds} seconds with following metrics:")
%sb.AppendLine($"Accuracy: {metrics.Accuracy}")
%sb.AppendLine($"AreaUnderPrecisionRecallCurve: {metrics.AreaUnderPrecisionRecallCurve}")
%sb.AppendLine($"ConfusionMatrix:\n```\n{metrics.ConfusionMatrix.GetFormattedConfusionTable()}\n```")
%sb.AppendLine($"ConfusionMatrix:\n```\n{formattedTable}\n```")
%sb.AppendLine($"Entropy:{metrics.Entropy}")
%sb.AppendLine($"F1Score:{metrics.F1Score}")
%sb.AppendLine($"LogLoss:{metrics.LogLoss}")
Expand Down

0 comments on commit c8893f0

Please sign in to comment.