Add folder parameter to best, grid and main
This commit is contained in:
@@ -44,6 +44,9 @@ int main(int argc, char** argv)
|
||||
program.parse_args(argc, argv);
|
||||
model = program.get<std::string>("model");
|
||||
folder = program.get<std::string>("folder");
|
||||
if (folder.back() != '/') {
|
||||
folder += '/';
|
||||
}
|
||||
dataset = program.get<std::string>("dataset");
|
||||
score = program.get<std::string>("score");
|
||||
friedman = program.get<bool>("friedman");
|
||||
|
@@ -231,6 +231,7 @@ void experiment(argparse::ArgumentParser& program)
|
||||
{
|
||||
struct platform::ConfigGrid config;
|
||||
auto arguments = platform::ArgumentsExperiment(program, platform::experiment_t::GRID);
|
||||
auto path_results = arguments.getPathResults();
|
||||
arguments.parse();
|
||||
auto grid_experiment = platform::GridExperiment(arguments, config);
|
||||
platform::Timer timer;
|
||||
@@ -250,7 +251,7 @@ void experiment(argparse::ArgumentParser& program)
|
||||
auto duration = timer.getDuration();
|
||||
experiment.setDuration(duration);
|
||||
if (grid_experiment.haveToSaveResults()) {
|
||||
experiment.saveResult();
|
||||
experiment.saveResult(path_results);
|
||||
}
|
||||
experiment.report();
|
||||
std::cout << "Process took " << duration << std::endl;
|
||||
|
@@ -18,6 +18,7 @@ int main(int argc, char** argv)
|
||||
*/
|
||||
// Initialize the experiment class with the command line arguments
|
||||
auto experiment = arguments.initializedExperiment();
|
||||
auto path_results = arguments.getPathResults();
|
||||
platform::Timer timer;
|
||||
timer.start();
|
||||
experiment.go();
|
||||
@@ -27,7 +28,7 @@ int main(int argc, char** argv)
|
||||
experiment.report();
|
||||
}
|
||||
if (arguments.haveToSaveResults()) {
|
||||
experiment.saveResult();
|
||||
experiment.saveResult(path_results);
|
||||
}
|
||||
if (arguments.doGraph()) {
|
||||
experiment.saveGraph();
|
||||
|
Reference in New Issue
Block a user