From 11651bc5dfd0ee8822782629178709c35391bc53 Mon Sep 17 00:00:00 2001 From: a_vartenkov Date: Fri, 4 Sep 2026 13:37:26 +0300 Subject: [PATCH 1/2] Fix a wrong test --- knp/tests/framework/inference_evaluation_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knp/tests/framework/inference_evaluation_test.cpp b/knp/tests/framework/inference_evaluation_test.cpp index 3af34252..608bffba 100644 --- a/knp/tests/framework/inference_evaluation_test.cpp +++ b/knp/tests/framework/inference_evaluation_test.cpp @@ -69,5 +69,5 @@ TEST(InferenceEvaluation, Classification) ASSERT_EQ( csv_res.str(), "CLASS,TOTAL_VOTES,TRUE_POSITIVES,FALSE_NEGATIVES,FALSE_POSITIVES,TRUE_NEGATIVES,PRECISION,RECALL,PREVALENCE," - "ACCURACY,F_SCORE\n0,2,1,0,1,2,0.5,0.5,0.25,0.75,0.5\n1,2,2,0,0,2,1,1,0.5,1,1\n"); + "ACCURACY,F_SCORE\n0,2,1,0,1,2,0.5,0.5,0.25,0.75,0.666667\n1,2,2,0,0,2,1,1,0.5,1,1\n"); } From b14def7db1ba5b89b366830190b322ea3cbec313 Mon Sep 17 00:00:00 2001 From: a_vartenkov Date: Fri, 4 Sep 2026 13:58:52 +0300 Subject: [PATCH 2/2] Fixed wrong expected values in a test --- knp/tests/framework/inference_evaluation_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knp/tests/framework/inference_evaluation_test.cpp b/knp/tests/framework/inference_evaluation_test.cpp index 608bffba..17e44f22 100644 --- a/knp/tests/framework/inference_evaluation_test.cpp +++ b/knp/tests/framework/inference_evaluation_test.cpp @@ -69,5 +69,5 @@ TEST(InferenceEvaluation, Classification) ASSERT_EQ( csv_res.str(), "CLASS,TOTAL_VOTES,TRUE_POSITIVES,FALSE_NEGATIVES,FALSE_POSITIVES,TRUE_NEGATIVES,PRECISION,RECALL,PREVALENCE," - "ACCURACY,F_SCORE\n0,2,1,0,1,2,0.5,0.5,0.25,0.75,0.666667\n1,2,2,0,0,2,1,1,0.5,1,1\n"); + "ACCURACY,F_SCORE\n0,2,1,0,1,2,0.5,1,0.25,0.75,0.666667\n1,2,2,0,0,2,1,1,0.5,1,1\n"); }