SEAL icon indicating copy to clipboard operation
SEAL copied to clipboard

__init__() got an unexpected keyword argument 'size'

Open fengjiufa opened this issue 2 years ago • 1 comments

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'

fengjiufa avatar Apr 29 '22 19:04 fengjiufa

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

muhanzhang avatar May 07 '22 12:05 muhanzhang