diff options
| author | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-02-03 10:04:12 -0500 |
|---|---|---|
| committer | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-02-03 10:04:12 -0500 |
| commit | 12e52fe9e9e1ac286c1b64342a54d7eccd6d9332 (patch) | |
| tree | 526c3f12b747f328772a2e3fbf0941fd0da21aaa /src/make_plots.py | |
| parent | f95792d89fff45e9a3630486805a7c516778db84 (diff) | |
| download | cascades-12e52fe9e9e1ac286c1b64342a54d7eccd6d9332.tar.gz | |
fixed weird bug?
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 c1cafe7..4a952d1 100644 --- a/src/make_plots.py +++ b/src/make_plots.py @@ -31,13 +31,14 @@ def test(): """ unit test """ - G = cascade_creation.InfluenceGraph(max_proba=.8) - G.erdos_init(n=30, p=.2) + G = cascade_creation.InfluenceGraph(max_proba=1, min_proba=.2) + G.erdos_init(n=50, p=.2) A = cascade_creation.generate_cascades(G, p_init=.1, n_cascades=1000) G_hat = algorithms.recovery_passed_function(G, A, passed_function=convex_optimization.type_lasso, - floor_cstt=.001, lbda=.0001) + floor_cstt=.1, lbda=.001) algorithms.correctness_measure(G, G_hat, print_values=True) + print(G.mat) if __name__=="__main__": test() |
