tapios / risk-networks

Code for risk networks: a blend of compartmental models, graphs, data assimilation and semi-supervised learning
Other
2 stars 2 forks source link

Added UserBase and examples #74

Closed odunbar closed 4 years ago

odunbar commented 4 years ago

This PR adds the classes of user base found in epiforecast/user_base.py . It creates the user specified complete subgraph (a view of the graph - so linked in memory). I have included an example to show how they work, and also a full data assimilation / master equations loop with a subgraph.

examples/specify_user_base.py gives a simple example. user_base_data_assimilation.py gives the framework for how the data assimilation will work with the user base.