summaryrefslogtreecommitdiffstats
path: root/hawkes/sanity.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-08-23 03:47:58 -0700
committerThibaut Horel <thibaut.horel@gmail.com>2015-08-23 03:47:58 -0700
commit0b0d26b2c0ed7d6f0b69f550f6584dabae184ba1 (patch)
treeb21a4b25d907d8106ce4189d8a770acd6abe457f /hawkes/sanity.py
parentef61ece9773e8a865b57f60ca1e1b9faa903af23 (diff)
downloadcriminal_cascades-0b0d26b2c0ed7d6f0b69f550f6584dabae184ba1.tar.gz
Code for hawkes model
Diffstat (limited to 'hawkes/sanity.py')
-rw-r--r--hawkes/sanity.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/hawkes/sanity.py b/hawkes/sanity.py
new file mode 100644
index 0000000..c837757
--- /dev/null
+++ b/hawkes/sanity.py
@@ -0,0 +1,5 @@
+from cPickle import load
+
+if __name__ == "__main__":
+ nodes, edges, events, event_edges = load(open("data.pickle", "rb"))
+ print len(nodes)