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

__init__() got an unexpected keyword argument 'size' #72

Open
fengjiufa opened this issue Apr 29, 2022 · 1 comment
Open

__init__() got an unexpected keyword argument 'size' #72

fengjiufa opened this issue Apr 29, 2022 · 1 comment

Comments

@fengjiufa
Copy link

Hello, what's the problem here? I checked many methods without solving.When running“ python Main.py --data-name NS --test-ratio 0.5 --hop 'auto' --use-embedding”
File "Main.py", line 138, in embeddings = generate_node2vec_embeddings(A, 128, True, train_neg)
File "/home/jiufafeng/programs/GCN/SEAL-master/Python/util_functions.py", line 220, in generate_node2vec_embeddings model = Word2Vec(walks, size=emd_size, window=10, min_count=0, sg=1,
TypeError: init() got an unexpected keyword argument 'size'

@muhanzhang
Copy link
Owner

Seems the Word2Vec function has changed its API. Can you check the latest Word2Vec documentation? Maybe the "size" is changed to sth else.

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