Add BoostA2DE model and fix some report errors

This commit is contained in:
2024-05-17 01:25:27 +02:00
parent 30a6d5e60d
commit 696c0564a7
9 changed files with 25 additions and 22 deletions

View File

@@ -37,7 +37,8 @@ void list_results(argparse::ArgumentParser& program)
auto model = program.get<string>("model");
auto excel = program.get<bool>("excel");
auto report = platform::ResultsDatasetsConsole();
report.report(dataset, score, model);
if (!report.report(dataset, score, model))
return;
std::cout << report.getOutput();
if (excel) {
auto data = report.getData();
@@ -73,7 +74,7 @@ int main(int argc, char** argv)
}
throw std::runtime_error("Dataset must be one of " + datasets.toString());
}
);
);
results_command.add_argument("-m", "--model")
.help("Model to use: " + platform::Models::instance()->toString() + " or any")
.default_value("any")
@@ -86,7 +87,7 @@ int main(int argc, char** argv)
}
throw std::runtime_error("Model must be one of " + platform::Models::instance()->toString() + " or any");
}
);
);
results_command.add_argument("--excel").help("Output in Excel format").default_value(false).implicit_value(true);
results_command.add_argument("-s", "--score").default_value("accuracy").help("Filter results of the score name supplied");