diff options
| author | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-02-02 13:18:16 -0500 |
|---|---|---|
| committer | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-02-02 13:18:16 -0500 |
| commit | 873ce616a9d21d670f15ab7b5ae61cc143dccc80 (patch) | |
| tree | 26ee84f11c54089a49eed6de5aedd7c87e74a8fa /src/make_plots.py | |
| parent | 0480b2f097b60240d29a0de58efac649a8de959f (diff) | |
| download | cascades-873ce616a9d21d670f15ab7b5ae61cc143dccc80.tar.gz | |
more changes
Diffstat (limited to 'src/make_plots.py')
| -rw-r--r-- | src/make_plots.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/make_plots.py b/src/make_plots.py index 57c5caa..60c2292 100644 --- a/src/make_plots.py +++ b/src/make_plots.py @@ -32,11 +32,12 @@ def test(): unit test """ G = cascade_creation.InfluenceGraph(max_proba=.8) - G.erdos_init(n=100, p=.1) - A = cascade_creation.generate_cascades(G, p_init=.02, n_cascades=1000) + G.erdos_init(n=20, p=.2) + print(G.mat) + A = cascade_creation.generate_cascades(G, p_init=.1, n_cascades=1000) G_hat = algorithms.recovery_l1obj_l2constraint(G, A, passed_function=convex_optimization.sparse_recovery, - floor_cstt=.1, lbda=1) + floor_cstt=.1, lbda=20) algorithms.correctness_measure(G, G_hat, print_values=True) if __name__=="__main__": |
