summaryrefslogtreecommitdiffstats
path: root/hawkes/sanity.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-09-13 15:40:02 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2015-09-13 15:40:13 -0400
commitfffb68b515a5cae198d8b756b562ddea6f2c814c (patch)
tree0ecd1c27d5f52c7e27bbf36b39491c984274a06a /hawkes/sanity.py
parent754bc37b60d5efbcf0ddad7b991f6effafe2237d (diff)
downloadcriminal_cascades-fffb68b515a5cae198d8b756b562ddea6f2c814c.tar.gz
Digging into the data
Diffstat (limited to 'hawkes/sanity.py')
-rw-r--r--hawkes/sanity.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/hawkes/sanity.py b/hawkes/sanity.py
index 529203c..b6f25eb 100644
--- a/hawkes/sanity.py
+++ b/hawkes/sanity.py
@@ -7,7 +7,6 @@ import sys
def parse_row(row):
return set(e for e in map(parse, row[2:]) if e)
-
if __name__ == "__main__":
nodes, edges, events, event_edges = load(open("data2.pickle", "rb"))
with open(sys.argv[1]) as fh:
@@ -15,5 +14,3 @@ if __name__ == "__main__":
reader = reader(fh)
d = {parse(row[1]): parse_row(row) for row in reader}
d = {k: v for (k, v) in d.iteritems() if v}
- for k in d:
- print len(d[k])