mlrl.testbed.extensions.extension module¶
Author: Michael Rapp (michael.rapp.ml@gmail.com)
Provides classes for implementing extensions that add functionality to the command line API provided by this software package.
- class mlrl.testbed.extensions.extension.Extension(*dependencies: Extension)¶
Bases:
ABCAn abstract base class for all extensions that add functionality to the command line API.
- configure_batch_mode(args: Namespace, batch_mode: BatchMode)¶
May be overridden by subclasses in order to configure the batch mode according to the command line arguments specified by the user.
- Parameters:
args – The command line arguments specified by the user
batch_mode – The batch mode to be configured
- configure_experiment(args: Namespace, experiment_builder: Builder)¶
May be overridden by subclasses in order to configure an experiment according to the command line arguments specified by the user.
- Parameters:
args – The command line arguments specified by the user
experiment_builder – A builder that allows to configure the experiment
- get_arguments(mode: Mode) Set[Argument]¶
Returns a set that contains the arguments that should be added to the command line API according to this extension, if it supported a given mode of operation. Dependencies that support the given mode are taken into account recursively.
- Parameters:
mode – The mode to be supported
- Returns:
A set that contains the arguments
- get_dependencies(mode: Mode) Set[Extension]¶
Returns a set that contains all extensions, this extension depends on recursively, including only those that support a given mode of operation.
- Parameters:
mode – The mode to be supported
- Returns:
A set that contains all extensions, this extension depends on