Add ranks sheet to excel best results

This commit is contained in:
2023-10-04 16:26:57 +02:00
parent 55e742438f
commit 5e938d5cca
3 changed files with 111 additions and 90 deletions

View File

@@ -12,25 +12,26 @@ namespace platform {
class BestResultsExcel : ExcelFile {
public:
BestResultsExcel(const string& score, const vector<string>& models, const vector<string>& datasets, const json& table, bool friedman, double significance);
BestResultsExcel(const string& score, const vector<string>& models, const vector<string>& datasets, const json& table, const map<string, map<string, float>>& ranks, bool friedman, double significance);
~BestResultsExcel();
void build();
string getFileName();
private:
void header();
void body();
void footer();
void header(bool ranks);
void body(bool ranks);
void footer(bool ranks);
void formatColumns();
void doFriedman();
const string fileName = "BestResults.xlsx";
const string& score;
const vector<string>& models;
const vector<string>& datasets;
const json& table;
string score;
vector<string> models;
vector<string> datasets;
json table;
map<string, map<string, float>> ranksModels;
bool friedman;
double significance;
int modelNameSize = 12; // Min size of the column
int datasetNameSize = 25; // Min size of the column
// map<string, map<string, float>>& ranksModels;
};
}
#endif //BESTRESULTS_EXCEL_H