Modify configuration parameters
Configuration parameters are simulation-wide parameters that affect how EMOD runs at a fundamental level. These include parameters related, but not limited to:
- Model duration, timestep length, and simulation start time
- How a disease progresses and transmits
- Whether agents can be born, age, and/or die
Overview
Configuration parameters are assigned values in functions initialize_config and get_config_parameterized_calls in a
frame, however, it is common practice to set default/initial values in the country model versions of these methods.
Example
In this example, we update the value of configuration parameter named Base_Infectivity, which alters how infectious a disease is at a fundamental level (before any other modifiers apply).
Prerequisites
This tutorial requires you to have done the following:
Extend the baseline frame for alteration
Edit the frame config.py
Here we edit the initialize_config function, opting to not make a hyperparameter for setting Base_Infectivity for
simplicity. An alternative example that makes a hyperparameter is located at
how to use elements in a frame.
Edit file frames/more_infectious/config.py to have 10 times greater infectivity. It should contain the following:
Run EMOD
We will run the baseline frame and more_infectious frames:
Compare InsetChart.json
Run:
Blue below represents the more_infectious frame and red represents the frame baseline. As can be seen, highly infectious HIV results in higher infection rates and mortality.
