diff options
| -rw-r--r-- | .gitignore | 6 | ||||
| -rw-r--r-- | jpa_test/algorithms.py | 6 |
2 files changed, 9 insertions, 3 deletions
@@ -4,7 +4,13 @@ *.tar *.zip +#Compiled +*.pdf + # logs +*.nav +*.snm +*.toc *.pyc *.aux *.log diff --git a/jpa_test/algorithms.py b/jpa_test/algorithms.py index 5d28300..facce3b 100644 --- a/jpa_test/algorithms.py +++ b/jpa_test/algorithms.py @@ -76,13 +76,13 @@ def test(): unit test """ G = cascade_creation.InfluenceGraph(max_proba = .8) - G.erdos_init(n = 100, p = .3) + G.erdos_init(n = 100, p = .05) import time t0 = time.time() - A = cascade_creation.generate_cascades(G, .2, 10000) + A = cascade_creation.generate_cascades(G, .2, 1000) G_hat = recovery_l1obj_l2constraint(G, A, passed_function=convex_optimization.l1obj_l2penalization, - floor_cstt=.1, lbda=100) + floor_cstt=.1, lbda=10) correctness_measure(G, G_hat, print_values=True) |
