From 1da83662d09f01bc3c24ac0faecb8143e0bc5daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Mon, 21 Aug 2023 10:55:20 +0200 Subject: [PATCH] Always save results --- src/Platform/main.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Platform/main.cc b/src/Platform/main.cc index a2a7cce..b375915 100644 --- a/src/Platform/main.cc +++ b/src/Platform/main.cc @@ -78,7 +78,6 @@ argparse::ArgumentParser manageArguments(int argc, char** argv) int main(int argc, char** argv) { auto program = manageArguments(argc, argv); - bool saveResults = false; auto file_name = program.get("dataset"); auto path = program.get("path"); auto model_name = program.get("model"); @@ -101,7 +100,6 @@ int main(int argc, char** argv) filesToTest.push_back(file_name); } else { filesToTest = platform::Datasets(path, true, platform::ARFF).getNames(); - saveResults = true; } /* * Begin Processing @@ -119,10 +117,8 @@ int main(int argc, char** argv) timer.start(); experiment.go(filesToTest, path); experiment.setDuration(timer.getDuration()); - if (saveResults) - experiment.save(platform::Paths::results()); - else - experiment.report(); + experiment.save(platform::Paths::results()); + experiment.report(); cout << "Done!" << endl; return 0; }