eliorc / node2vec

Implementation of the node2vec algorithm.
MIT License
1.25k stars 249 forks source link

set the workers more than 1, it will cause the TerminatedWorkerError #27

Closed abc3436645 closed 5 years ago

abc3436645 commented 5 years ago

PC memory:128GB node2vec = Node2Vec(G, dimensions=100, walk_length=30, num_walks=100, workers=10)

TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker. The exit codes of the workers are {EXIT(2), EXIT(2), EXIT(2), EXIT(2), EXIT(2), EXIT(2), EXIT(2), EXIT(2)}

when I set the worker=1, it runs successfully, but it runs so slowly

eliorc commented 5 years ago

Please look at the temp_folder argument in the documentation on the first page, and let me know if that solved your problem