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

WIP: Exogenous rates #128

Closed odunbar closed 3 years ago

odunbar commented 4 years ago

To Resolve #84 This PR is to introduce exogenous rates. Currently 3 features in mind

Currently we set a user_connectivity score as a node attribute on the user nodes of the network. This is either 1 for all users (in the homogeneous case) or between [0,1) in the heterogeneous case. The score for a user is given by

({total_user_edges} - {user_edges_that_are_users}) / {total_user_edges}

Here, a score of 0 represents a node whose neighbors are completely contained within the user_base. and scores near 1 represent a node with many connections not within the user base.

This score is used to prefactor a (learned) exogenous_transmission_rate to produce the exogenous rate in the master equations, we call this eta.

eta = connectivity_score * exogenous_transmission_rate