33 void train_on_dataset(
const std::string & dataset) {
36 std::cout <<
"\n=== " << dataset <<
" ===\n";
37 std::cout <<
"\tInitializing the environment ...\n";
39 util::setup_environment(dataset,
true, env);
42 std::vector<std::string> led_methods{
"GAMMA",
"LSAPE_GREEDY",
"LSAPE_OPTIMAL"};
43 for (
auto led_method : led_methods) {
44 std::cout <<
"\n=== " << led_method <<
" ===\n";
50 int main(
int argc,
char* argv[]) {
51 std::vector<std::string> datasets;
52 for (
int i{1}; i < argc; i++) {
53 datasets.push_back(std::string(argv[i]));
54 util::check_dataset(datasets.back());
56 if (datasets.empty()) {
57 util::setup_datasets(datasets);
59 for (
auto dataset : datasets) {
61 train_on_dataset(dataset);
63 catch (
const std::exception & error) {
64 std::cerr << error.what() <<
". " <<
"Error on " << dataset <<
".\n";
void init_method()
Initializes the method specified by call to set_method().
Provides utility functions for tests of PR submission.
void set_method(Options::GEDMethod method, const std::string &options=std::string(""))
Sets the GEDMethod to be used by run_method().
Provides the API of GEDLIB.