Remove using namespace from Library

This commit is contained in:
2023-11-08 18:45:35 +01:00
parent 92820555da
commit f9258e43b9
96 changed files with 1316 additions and 1340 deletions

View File

@@ -7,14 +7,14 @@
namespace platform {
class BestScore {
public:
static pair<string, double> getScore(const std::string& metric)
static std::pair<std::string, double> getScore(const std::string& metric)
{
static map<pair<string, string>, pair<string, double>> data = {
static std::map<std::pair<std::string, std::string>, std::pair<std::string, double>> data = {
{{"discretiz", "accuracy"}, {"STree_default (linear-ovo)", 22.109799}},
{{"odte", "accuracy"}, {"STree_default (linear-ovo)", 22.109799}},
};
auto env = platform::DotEnv();
string experiment = env.get("experiment");
std::string experiment = env.get("experiment");
try {
return data[{experiment, metric}];
}