diff options
| author | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-11-28 15:14:52 -0500 |
|---|---|---|
| committer | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-11-28 15:14:52 -0500 |
| commit | 041aa021657a3c290952b222e3141449638bad19 (patch) | |
| tree | 087dbbbfc1f08d207e6a443fc91e900b3a588d19 /simulation/vi.py | |
| parent | e0152021025e07788e5ef928af6c9160c98c5452 (diff) | |
| download | cascades-041aa021657a3c290952b222e3141449638bad19.tar.gz | |
switch to python 3 + blocks version of MLE implemented
Diffstat (limited to 'simulation/vi.py')
| -rw-r--r-- | simulation/vi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simulation/vi.py b/simulation/vi.py index 1e45761..b4a83c1 100644 --- a/simulation/vi.py +++ b/simulation/vi.py @@ -73,7 +73,7 @@ if __name__ == '__main__': p = 0.5 graph = np.log(1. / (1 - p * graph)) print(graph) - cascades = mn.build_cascade_list(mn.simulate_cascades(100, graph)) + cascades = mn.build_cascade_list(mn.simulate_cascades(1000, graph)) mu0, sig0 = (1. + .2 * np.random.normal(size=graph.shape), 1 + .2 * np.random.normal(size=graph.shape)) mu1, sig1 = (1. + .2 * np.random.normal(size=graph.shape), |
