Instructions on how to make word2vec deterministic?

338 views
Skip to first unread message

mralex...@gmail.com

unread,
Mar 25, 2019, 9:35:43 PM3/25/19
to Gensim
I am training word2vec with the same corpus but receiving different embeddings in multiple runs. In my code, I have the following settings:
i) np.random.seed(0)
ii) random.seed(0)
iii) Word2Vec(doc, seed=0, workers=1)

The code is in Python 3 and the code was running in different screens called from os.system() (i.e., os.system('screen -dm python ...'))

Am I missing anything?

Radim Řehůřek

unread,
Mar 26, 2019, 5:15:07 AM3/26/19
to Gensim
Reply all
Reply to author
Forward
0 new messages