Gensim: doc2vec - infer_vector gives different values on every run

Created on 23 May 2020  路  1Comment  路  Source: RaRe-Technologies/gensim

Hi,

I used doc2vec to train the documents following the post here

I get different values for infer_vector - most similar documents on every run. I tried to set a seed value to avoid the initial randomization but that didn't seem to fix this issue. Any better suggestions would be helpful!

Thanks!

question

Most helpful comment

Hi, check out the FAQ:
https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ#q11-ive-trained-my-word2vecdoc2vecetc-model-repeatedly-using-the-exact-same-text-corpus-but-the-vectors-are-different-each-time-is-there-a-bug-or-have-i-made-a-mistake-2vec-training-non-determinism

>All comments

Hi, check out the FAQ:
https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ#q11-ive-trained-my-word2vecdoc2vecetc-model-repeatedly-using-the-exact-same-text-corpus-but-the-vectors-are-different-each-time-is-there-a-bug-or-have-i-made-a-mistake-2vec-training-non-determinism

Was this page helpful?
0 / 5 - 0 ratings