mlrl.testbed.modes.mode module

Author: Michael Rapp (michael.rapp.ml@gmail.com)

Provides base classes for implementing different modes of operation.

class mlrl.testbed.modes.mode.Mode

Bases: ABC

An abstract base class for all modes of operation.

MODE = <mlrl.util.cli.SetArgument object>
MODE_BATCH = 'batch'
MODE_SINGLE = 'single'
abstractmethod configure_arguments(cli: CommandLineInterface)

Must be implemented by subclasses in order to configure the command line interface according to the mode of operation.

Parameters:

cli – The command line interface to be configured

abstractmethod run_experiment(args: Namespace, recipe: Recipe)

Must be implemented by subclasses in order to run an experiment according to the command line arguments specified by the user.

Parameters:
  • args – The command line arguments specified by the user

  • recipe – A Recipe that provides access to the ingredients that are needed for setting up experiments