Always save results

This commit is contained in:
Ricardo Montañana Gómez 2023-08-21 10:55:20 +02:00
parent 3ac9593c65
commit 1da83662d0
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE

View File

@ -78,7 +78,6 @@ argparse::ArgumentParser manageArguments(int argc, char** argv)
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
auto program = manageArguments(argc, argv); auto program = manageArguments(argc, argv);
bool saveResults = false;
auto file_name = program.get<string>("dataset"); auto file_name = program.get<string>("dataset");
auto path = program.get<string>("path"); auto path = program.get<string>("path");
auto model_name = program.get<string>("model"); auto model_name = program.get<string>("model");
@ -101,7 +100,6 @@ int main(int argc, char** argv)
filesToTest.push_back(file_name); filesToTest.push_back(file_name);
} else { } else {
filesToTest = platform::Datasets(path, true, platform::ARFF).getNames(); filesToTest = platform::Datasets(path, true, platform::ARFF).getNames();
saveResults = true;
} }
/* /*
* Begin Processing * Begin Processing
@ -119,9 +117,7 @@ int main(int argc, char** argv)
timer.start(); timer.start();
experiment.go(filesToTest, path); experiment.go(filesToTest, path);
experiment.setDuration(timer.getDuration()); experiment.setDuration(timer.getDuration());
if (saveResults)
experiment.save(platform::Paths::results()); experiment.save(platform::Paths::results());
else
experiment.report(); experiment.report();
cout << "Done!" << endl; cout << "Done!" << endl;
return 0; return 0;