Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in model creation node2vec #104

Open
stonescenter opened this issue Jul 13, 2023 · 1 comment
Open

Error in model creation node2vec #104

stonescenter opened this issue Jul 13, 2023 · 1 comment

Comments

@stonescenter
Copy link


_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

@eliorc
Copy link
Owner

eliorc commented Jul 13, 2023

Can you please share the output of

pip freeze

so I can see your package versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants