In [11]:
%matplotlib inline

import sys
sys.path.append('../src/mane/prototype/')
import graph as g
import embeddings as e
import numpy as np
import matplotlib.pyplot as plt
import util as u
from sklearn.multiclass import OneVsRestClassifier
from sklearn.svm import SVC
from sklearn.preprocessing import normalize
from sklearn.manifold import TSNE

In [2]:
bc = g.graph_from_pickle('../src/mane/data/blogcatalog3.graph')

In [12]:
bcc = u.txt_community_to_dict('../src/mane/data/raw/BlogCatalog3_community.csv', '../src/mane/data/blogcatalog3.community')


---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-12-c66b53a306ff> in <module>()
----> 1 bcc = u.txt_community_to_dict('../src/mane/data/raw/BlogCatalog3_community.csv', '../src/mane/data/blogcatalog3.community')

/home/hoangnt/Dropbox/WorkingFiles/motifwalk/research/src/mane/prototype/util.py in txt_community_to_dict(filename, picklename)
    166         for line in txt.readlines():
    167             arr = line.split()
--> 168             if not int(arr[1]) in community:
    169                 community[int(arr[1])] = set()
    170             community[int(arr[1])].add(int(arr[0]))

IndexError: list index out of range

In [ ]: