Fix errors in grid Experiment

This commit is contained in:
2025-01-19 13:51:51 +01:00
parent 2a9652b450
commit 07e3cc9599
6 changed files with 9 additions and 3 deletions

View File

@@ -6,6 +6,9 @@
#include "ArgumentsExperiment.h"
namespace platform {
ArgumentsExperiment::ArgumentsExperiment(argparse::ArgumentParser& program, experiment_t type) : arguments{ program }, type{ type }
{
}
void ArgumentsExperiment::add_arguments()
{
auto env = platform::DotEnv();
auto datasets = platform::Datasets(false, platform::Paths::datasets());
@@ -106,7 +109,6 @@ namespace platform {
smooth_strat = arguments.get<std::string>("smooth-strat");
stratified = arguments.get<bool>("stratified");
quiet = arguments.get<bool>("quiet");
n_folds = arguments.get<int>("folds");
score = arguments.get<std::string>("score");
seeds = arguments.get<std::vector<int>>("seeds");
@@ -196,7 +198,6 @@ namespace platform {
}
}
}
if (hyperparameters_file != "") {
test_hyperparams = platform::HyperParameters(datasets.getNames(), hyperparameters_file, hyper_best);
} else {

View File

@@ -15,6 +15,7 @@ namespace platform {
ArgumentsExperiment(argparse::ArgumentParser& program, experiment_t type);
~ArgumentsExperiment() = default;
std::vector<std::string> getFilesToTest() const { return filesToTest; }
void add_arguments();
void parse_args(int argc, char** argv);
void parse();
Experiment& initializedExperiment();