aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/bayes.py
diff options
context:
space:
mode:
authorjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-11-06 10:45:45 -0500
committerjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-11-06 10:45:45 -0500
commitf106e9fdf13f4f4c2dd5f5411f5e6fd5e1559c9d (patch)
tree988616674407c7628156ee6f6146fc828c583e0d /simulation/bayes.py
parent50cac82def131c0629ec308dfe3e4a90d4c2abb1 (diff)
downloadcascades-f106e9fdf13f4f4c2dd5f5411f5e6fd5e1559c9d.tar.gz
adding to section Bayes
Diffstat (limited to 'simulation/bayes.py')
-rw-r--r--simulation/bayes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/simulation/bayes.py b/simulation/bayes.py
index 5114f70..7d8567b 100644
--- a/simulation/bayes.py
+++ b/simulation/bayes.py
@@ -78,11 +78,11 @@ if __name__=="__main__":
g = np.log(1. / (1 - p * g))
print('running the graph-level MC set-up')
- cascades = main.simulate_cascades(100, g)
+ cascades = main.simulate_cascades(1000, g)
infected, susc = main.build_cascade_list(cascades)
model = mc_graph_setup(infected, susc)
mcmc = pymc.MCMC(model)
- mcmc.sample(10**3, 100)
+ mcmc.sample(10**4, 1000)
fig, ax = plt.subplots(len(g), len(g))
for i in xrange(len(g)):
for j in xrange(len(g)):