Add new hyperparameters validation in b_main

This commit is contained in:
2024-06-10 10:16:07 +02:00
parent b8a8ddaf8c
commit f800772149
3 changed files with 35 additions and 8 deletions

View File

@@ -34,6 +34,10 @@ namespace platform {
smooth_type = bayesnet::Smoothing_t::LAPLACE;
else if (smooth_strategy == "CESTNIK")
smooth_type = bayesnet::Smoothing_t::CESTNIK;
else {
std::cerr << "Experiment: Unknown smoothing strategy: " << smooth_strategy << std::endl;
exit(1);
}
return *this;
}
Experiment& setLanguageVersion(const std::string& language_version) { this->result.setLanguageVersion(language_version); return *this; }