Skip to content

Instantly share code, notes, and snippets.

@milani
milani / wikielections.py
Created October 12, 2017 12:19
WikiElection network construction
import re
import urllib2
import gzip
import StringIO
import numpy as np
def readDataset(save=True):
content = ''
outFilePath = 'wikielect.txt'
try:
============================= test session starts ==============================
platform linux -- Python 3.5.3, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /fast/keras-rcnn, inifile: setup.cfg
collected 25 items
tests/backend/test_common.py .FFFFFF..FFF [ 48%]
tests/backend/test_tensorflow_backend.py .....F.....F. [100%]
=================================== FAILURES ===================================
__________________________________ test_clip ___________________________________
============================= test session starts ==============================
platform linux -- Python 3.5.3, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /fast/keras-rcnn, inifile: setup.cfg
collected 9 items
tests/layers/object_detection/test_anchor_target.py FFFFFFFFF [100%]
=================================== FAILURES ===================================
__________________________________ test_label __________________________________
^CProcess Process-27:
Process Process-25:
Process Process-26:
Process Process-30:
Process Process-29:
Traceback (most recent call last):
File "train.py", line 28, in <module>
trainer.fit(train_loader, val_loa