node2vec icon indicating copy to clipboard operation
node2vec copied to clipboard

TypeError: object of type 'map' has no len()

Open ghost opened this issue 7 years ago • 1 comments

2018-04-02 3 55 52

ghost avatar Apr 02 '18 07:04 ghost

Because python2's map function is different from python3's. Try to modify line 86 in main.py to walks = [list(map(str, walk)) for walk in walks] If you run main.py with python2,it worked without modifying the code @ranzeng

songzenghui avatar Apr 20 '18 01:04 songzenghui