node2vec icon indicating copy to clipboard operation
node2vec copied to clipboard

Error in model creation node2vec

Open stonescenter opened this issue 1 year ago • 1 comments


_RemoteTraceback Traceback (most recent call last) _RemoteTraceback: """ Hello

I am getting the following error:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/joblib/externals/loky/process_executor.py", line 463, in _process_worker r = call_item() File "/usr/local/lib/python3.10/dist-packages/joblib/externals/loky/process_executor.py", line 291, in call return self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.10/dist-packages/joblib/parallel.py", line 588, in call return [func(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/joblib/parallel.py", line 588, in return [func(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/node2vec/parallel.py", line 49, in parallel_generate_walks while len(walk) < walk_length: TypeError: '<' not supported between instances of 'int' and 'tuple' """

The above exception was the direct cause of the following exception:

TypeError Traceback (most recent call last) in <cell line: 8>() 6 window=10 7 ----> 8 model = Node2Vec(G, dimensions=dimensions, walk_length=walk_length, num_walks=num_walks, workers=4) 9 model = model.fit(window=window, min_count=1, batch_words=4)

7 frames /usr/local/lib/python3.10/dist-packages/joblib/parallel.py in _return_or_raise(self) 751 try: 752 if self.status == TASK_ERROR: --> 753 raise self._result 754 return self._result 755 finally:

TypeError: '<' not supported between instances of 'int' and 'tupl

stonescenter avatar Jul 13 '23 03:07 stonescenter

Can you please share the output of

pip freeze

so I can see your package versions

eliorc avatar Jul 13 '23 05:07 eliorc