-
Notifications
You must be signed in to change notification settings - Fork 0
1. Data Generation
"An agent-based model is a computational model for simulating the actions and interactions of autonomous agents in order to understand the behavior of a system and what governs its outcomes." - Wikipedia
-
How Covasim Works: Covasim is an agent-based simulator that utilizes efficient computations, pseudorandom coding techniques, probability distributions, and in-depth nodal representations of agents and their contact networks to simulate the spread of an infectious disease - COVID-19.
-
Our Data Generator: We utilize the files
drums_data_gen.py
anddrums_data_gen_multi.py
to generate data.
Within these Python scripts are the interventions (testing and tracing) and behaviors (masking), all of which are instantiations of the type covasim.Interventions
class. covasim.Interventions
acts as a blueprint class for users to adapt the Covasim in their own way.
-
drums_data_gen.py
: An old data generator initially used for creating single simulations. -
drums_data_gen_multi.py
: The currently used version used for creating any number of simulations. It interacts specifically with thecovasim.MultiSim
class of typebase.FlexPretty
, a class that supports multiple different display options. TheSim
class is an instance of typebase.BaseSim
which acts as Covasim's agent-based simulator wrapper class. TheSim
class handles the running of the simulation, i.e., the creation of the population and the dynamics of the epidemic and takes in a dictionary of parameters for the simulation. TheMultiSim
class is for running multiple copies of aSim
instance simulation and takes in the simulation instance that you wish to copy and run multiple times.