Add significance level as parameter in best

This commit is contained in:
2023-10-02 15:46:40 +02:00
parent 57c27f739c
commit 93e4ff94db
3 changed files with 19 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ 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) {}
explicit BestResults(const string& path, const string& score, const string& model, bool friedman, double significance = 0.05) : path(path), score(score), model(model), friedman(friedman), significance(significance) {}
string build();
void reportSingle();
void reportAll(bool excel);
@@ -24,6 +24,7 @@ namespace platform {
string score;
string model;
bool friedman;
double significance;
int maxModelName = 0;
int maxDatasetName = 0;
};