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: ABC

An abstract base class for all extensions that add functionality to the command line API.

property arguments: Set[Argument]

A set that contains the arguments that should be added to the command line API according to this extension, also taking into account dependencies recursively.

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

property dependencies: Set[Extension]

A set that contains all extensions, this extension depends on recursively.