stable_learning_control.run
Responsible for creating the CLI for the stable_learning_control package. It can be used to start the training of an algorithm, or run any of the other utilities.
Attributes
Functions
|
Function parses exp config values to make sure that comma/space separated |
|
This function parses the cmd line args to see if it contains the |
|
This function parses the cmd line args to see if it contains the |
|
Adds the backend suffix to the input command. |
|
Process an arg by eval-ing it, so users can specify more than just strings at |
|
Helper function to build lists with backend-specific function names |
|
Interprets algorithm name and cmd line args into an ExperimentGrid. |
|
Function that is used to run the experiments. I modified this component |
Module Contents
- stable_learning_control.run._parse_hyperparameter_variants(exp_val)[source]
Function parses exp config values to make sure that comma/space separated strings (i.e.
5, 3, 2
or5 3 2
)) are recognized as hyperparameter variants.
- stable_learning_control.run._parse_exp_cfg(cmd_line_args)[source]
This function parses the cmd line args to see if it contains the
exp_cfg
flag. If this flag is present it uses theexp_cfg
file path (next cmd_line arg) to add any hyperparameters found in this experimental configuration file to the cmd line arguments.- Parameters:
cmd_line_args (list) – The cmd line input arguments.
- Returns:
- Modified cmd line argument list that also contains any hyperparameters
that were specified in a experimental cfg file.
- Return type:
Note
This function assumes comma/space separated strings (i.e.
5, 3, 2
or5 3 2
)) to be hyperparmeter variants.
- stable_learning_control.run._parse_eval_cfg(cmd_line_args)[source]
This function parses the cmd line args to see if it contains the
eval_cfg
flag. If this flag is present it uses theeval_cfg
file path (next cmd_line arg) to add any hyperparameters found in this eval configuration file to the cmd line arguments.- Parameters:
cmd_line_args (list) – The cmd line input arguments.
- Returns:
- Modified cmd line argument list that also contains any hyperparameters
that were specified in a eval cfg file.
- Return type:
Note
This function assumes comma/space separated strings (i.e.
5, 3, 2
or5 3 2
)) to be hyperparmeter variants.
- stable_learning_control.run._add_backend_to_cmd(cmd)[source]
Adds the backend suffix to the input command.
- stable_learning_control.run._process_arg(arg, backend=None)[source]
Process an arg by eval-ing it, so users can specify more than just strings at the command line (eg allows for users to give functions as args).
- stable_learning_control.run._add_with_backends(algo_list)[source]
Helper function to build lists with backend-specific function names
- stable_learning_control.run._parse_and_execute_grid_search(cmd, args)[source]
Interprets algorithm name and cmd line args into an ExperimentGrid.
- Parameters:
- Raises:
ImportError – A custom import error if TensorFlow is not installed.