diff options
| author | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2014-11-29 14:45:11 -0500 |
|---|---|---|
| committer | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2014-11-29 14:45:11 -0500 |
| commit | 6c2ff72156808975b2434e27a70b03cd54fdaecf (patch) | |
| tree | 2457bb413e1c96dc42943c4a176a1b27ac390407 /jpa_test/algorithms.py | |
| parent | 59add61ec7b8ada40909edddfb88f193e489303a (diff) | |
| download | cascades-6c2ff72156808975b2434e27a70b03cd54fdaecf.tar.gz | |
changed createStanfordGraph -> import_from_file & created Cascade class
Diffstat (limited to 'jpa_test/algorithms.py')
| -rw-r--r-- | jpa_test/algorithms.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/jpa_test/algorithms.py b/jpa_test/algorithms.py index 2ee08ec..9973dc3 100644 --- a/jpa_test/algorithms.py +++ b/jpa_test/algorithms.py @@ -8,13 +8,10 @@ def greedy_prediction(G, cascades): returns estimated graph """ G_hat = cascade_creation.InfluenceGraph(max_proba=None) - G.add_nodes_from(G.nodes()) + G_hat.add_nodes_from(G.nodes()) for node in G.nodes(): unaccounted = cascades for cascade in cascades: - time_step = 0 - while not cascade[time_step][node]: - time_step += 1 def test(): """ |
