Add labels to confusion_matrices in results

This commit is contained in:
2024-05-10 17:12:11 +02:00
parent 6d4117d188
commit 69b9609154
8 changed files with 57 additions and 35 deletions

View File

@@ -147,6 +147,9 @@ TEST_CASE("Classification Report", "[Scores]")
weighted avg 0.8250000 0.6000000 0.6400000 10
)";
REQUIRE(scores.classification_report() == expected);
auto json_matrix = scores.get_confusion_matrix_json(true);
platform::Scores scores2(json_matrix);
REQUIRE(scores.classification_report() == scores2.classification_report());
}
TEST_CASE("JSON constructor", "[Scores]")
{