usersimcrs.run_simulation¶
Console application for running simulation.
Attributes¶
Functions¶
|
Executes the specified configuration. |
|
Defines accepted arguments and returns the parsed values. |
|
Loads config from config file and command line parameters. |
Module Contents¶
- usersimcrs.run_simulation.DEFAULT_CONFIG_PATH = 'config/default/config_default.yaml'¶
- usersimcrs.run_simulation.OUTPUT_DIR = 'data/runs'¶
- usersimcrs.run_simulation.logger¶
- usersimcrs.run_simulation.main(config: confuse.Configuration) None ¶
Executes the specified configuration.
Loads domain and interaction model. Initializes agent and user. Runs the simulation.
- Parameters:
config – Configuration generated from YAML configuration file.
- usersimcrs.run_simulation.parse_args() argparse.Namespace ¶
Defines accepted arguments and returns the parsed values.
- Returns:
A namespace object containing the arguments.
- usersimcrs.run_simulation.load_config(args: argparse.Namespace) confuse.Configuration ¶
Loads config from config file and command line parameters.
Loads default values from config/default/config_default.yaml. Values are then updated with any value specified in the command line arguments.
- Parameters:
args – Arguments parsed with argparse.
- usersimcrs.run_simulation.args¶