-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Sanity check for hs
and negative
in Word2Vec
#3443
Conversation
Looks very good to me! |
Many thanks! Let's wait for @mpenkov to review and merge. By the way, could other models in Gensim (doc2vec) benefit from a similar cleanup? |
It seems like doc2vec and fasttext in gensim have the same problem and would benefit from the same fix. I can add the changes to doc2vec and fasttext also, once you confirm it! |
Yes please! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Merging. Let's handle the other models in a separate PR, to keep the ball rolling. |
I did a quick check. Since FastText and Doc2Vec inherit Word2Vec class, they automatically have the sanity check for |
Fixes #1983
Changes:
ValueError
when bothhs=0
andnegative=0
hs
andnegative
are nonzerohs
andnegative
to avoid confusion@gojomo Please let me know if you want any changes. Cheers!