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

Small nondeterminism in the EoN #46

Closed odunbar closed 4 years ago

odunbar commented 4 years ago

Resolution of issue appears to be setting BOTH numpy and random random number generators:

import numpy as np import random

np.random.seed(111) random.seed(222)

We want to use a single random number generator This is well documented in EoN https://github.com/springer-math/Mathematics-of-Epidemics-on-Networks/issues/22#issuecomment-633029062

lubo93 commented 4 years ago

This issue is solved by setting the corresponding seeds as outlined above.