wamika
wamika

Reputation: 31

TypeError: __init__() got an unexpected keyword argument 'size' in Node2Vec

I am embedding a graph with Node2Vec library but I am getting this as error : TypeError: init() got an unexpected keyword argument 'size' to the following code block -

model = node2vec.fit(window=10, min_count=1, batch_words=4)

Any idea why this is happening?

Upvotes: 0

Views: 2942

Answers (1)

Reine Baudache
Reine Baudache

Reputation: 488

You have to downgrade gensim from (in my case) 4.1.2 to 3.8.3. I was using node2vec 0.4.3 This issue was supposed to be fixed since 4.2 but for some reason I still had it. https://githubmemory.com/repo/eliorc/node2vec/issues/60

Upvotes: 2

Related Questions