From 5fb176d78a75b3560ec4e7cc25cd08f744942860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana=20G=C3=B3mez?= Date: Wed, 29 May 2024 20:52:25 +0200 Subject: [PATCH] Add message of the file saved in b_main --- src/commands/b_main.cpp | 6 +++--- src/main/Experiment.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/commands/b_main.cpp b/src/commands/b_main.cpp index 5bd8a4e..06c9784 100644 --- a/src/commands/b_main.cpp +++ b/src/commands/b_main.cpp @@ -188,13 +188,13 @@ int main(int argc, char** argv) timer.start(); experiment.go(filesToTest, quiet, no_train_score, generate_fold_files); experiment.setDuration(timer.getDuration()); - if (saveResults) { - experiment.saveResult(); - } if (!quiet) { // Classification report if only one dataset is tested experiment.report(filesToTest.size() == 1); } + if (saveResults) { + experiment.saveResult(); + } std::cout << "Done!" << std::endl; return 0; } diff --git a/src/main/Experiment.cpp b/src/main/Experiment.cpp index 787184e..61b04d8 100644 --- a/src/main/Experiment.cpp +++ b/src/main/Experiment.cpp @@ -10,6 +10,7 @@ namespace platform { void Experiment::saveResult() { result.save(); + std::cout << "Result saved in " << Paths::results() << result.getFilename() << std::endl; } void Experiment::report(bool classification_report) {