Add report/build all with totals and ranks

This commit is contained in:
2023-09-23 01:14:02 +02:00
parent c8597a794e
commit cd0bc02a74
3 changed files with 186 additions and 16 deletions

View File

@@ -43,15 +43,14 @@ int main(int argc, char** argv)
cerr << program;
exit(1);
}
if (model == "any" && build) {
cerr << "Can't build best results file for all models. \"any\" is only valid for report" << endl;
cerr << program;
exit(1);
}
auto results = platform::BestResults(platform::Paths::results(), model, score);
auto results = platform::BestResults(platform::Paths::results(), score, model);
if (build) {
string fileName = results.build();
cout << Colors::GREEN() << fileName << " created!" << Colors::RESET() << endl;
if (model == "any") {
results.buildAll();
} else {
string fileName = results.build();
cout << Colors::GREEN() << fileName << " created!" << Colors::RESET() << endl;
}
}
if (report) {
if (model == "any") {