Enhance output of Best results reports

This commit is contained in:
2023-09-28 12:08:56 +02:00
parent 623ceed396
commit 82acb3cab5
9 changed files with 109 additions and 36 deletions

View File

@@ -1,7 +1,6 @@
#ifndef BESTRESULTS_H
#define BESTRESULTS_H
#include <string>
#include <set>
#include <nlohmann/json.hpp>
using namespace std;
using json = nlohmann::json;
@@ -11,10 +10,11 @@ namespace platform {
explicit BestResults(const string& path, const string& score, const string& model, bool friedman) : path(path), score(score), model(model), friedman(friedman) {}
string build();
void reportSingle();
void reportAll();
void reportAll(bool excel);
void buildAll();
private:
vector<string> getModels();
vector<string> getDatasets(json table);
vector<string> loadResultFiles();
json buildTableResults(vector<string> models);
void printTableResults(vector<string> models, json table);
@@ -24,6 +24,8 @@ namespace platform {
string score;
string model;
bool friedman;
int maxModelName = 0;
int maxDatasetName = 0;
};
}
#endif //BESTRESULTS_H