From 30979e2d56a1f6c8a591a53cbd6c1fc1ce380530 Mon Sep 17 00:00:00 2001
From: rtalbi <dr_talbi@esi.dz>
Date: Sun, 5 May 2019 20:37:26 +0200
Subject: [PATCH] Added eval print for the naive bayes classifier in the case
 of non-incremental  scenario

---
 TEST/main.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/TEST/main.cpp b/TEST/main.cpp
index e7cd13ec..2570dbe9 100755
--- a/TEST/main.cpp
+++ b/TEST/main.cpp
@@ -546,6 +546,17 @@ int main (int argc, char **argv) {
                         }
 
                     }
+
+                    evaluateAccuracy(clearPath, mainPath, OutputPath, classOutput, datasetReader->test_size, P,
+                                     R, F1);
+
+                    stats << std::to_string(classifier->trainTime) + "," + classifier->extTrainBd.get_str() +
+                             "," + std::to_string(classifier->testTime) + "," +
+                             std::to_string(classifier->clientTestTime) + "," +
+                             classifier->extTestBd.get_str() + "," + std::to_string(P) + "," +
+                             std::to_string(R) + "," + std::to_string(F1) << endl;
+
+
                     datasetReader->closeTraining();
                     datasetReader->closeTesting();
                     datasetReader->reinit();
-- 
GitLab