Add constant references to Statistics

This commit is contained in:
2023-10-04 13:40:45 +02:00
parent c4ae3fe429
commit 55e742438f
5 changed files with 27 additions and 11 deletions

View File

@@ -282,12 +282,15 @@ namespace platform {
// Print the table of results
printTableResults(models, table);
// Compute the Friedman test
map<string, map<string, float>> ranksModels;
if (friedman) {
Statistics stats(models, datasets, table, significance);
auto result = stats.friedmanTest();
stats.postHocHolmTest(result);
ranksModels = stats.getRanks();
}
if (excel) {
// BestResultsExcel excel(score, models, datasets, ranksModels, table, friedman, significance);
BestResultsExcel excel(score, models, datasets, table, friedman, significance);
excel.build();
cout << Colors::YELLOW() << "** Excel file generated: " << excel.getFileName() << Colors::RESET() << endl;