#ifndef BESTRESULTS_H #define BESTRESULTS_H #include #include using namespace std; using json = nlohmann::json; namespace platform { class BestResults { public: 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(bool excel); void buildAll(); private: vector getModels(); vector getDatasets(json table); vector loadResultFiles(); json buildTableResults(vector models); void printTableResults(vector models, json table); string bestResultFile(); json loadFile(const string& fileName); string path; string score; string model; bool friedman; int maxModelName = 0; int maxDatasetName = 0; }; } #endif //BESTRESULTS_H