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);
46 int main(
int argc,
char* argv[]) {
47 std::vector<std::string> datasets;
48 for (
int i{1}; i < argc; i++) {
49 datasets.push_back(std::string(argv[i]));
50 util::check_dataset(datasets.back());
52 if (datasets.empty()) {
53 util::setup_datasets(datasets);
55 for (
auto dataset : datasets) {
57 train_on_dataset(dataset);
59 catch (
const std::exception & error) {
60 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.