#ifndef BESTSCORE_H #define BESTSCORE_H #include #include #include #include "DotEnv.h" namespace platform { class BestScore { public: static std::pair getScore(const std::string& metric) { static std::map, std::pair> data = { {{"discretiz", "accuracy"}, {"STree_default (linear-ovo)", 22.109799}}, {{"odte", "accuracy"}, {"STree_default (linear-ovo)", 22.109799}}, }; auto env = platform::DotEnv(); std::string experiment = env.get("experiment"); try { return data[{experiment, metric}]; } catch (...) { return { "", 0.0 }; } } }; } #endif