Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc2Vec update on negative sampling #13

Merged
merged 5 commits into from
Apr 26, 2023

Conversation

nagireddyakshay
Copy link
Contributor

  • Updates -
    . Fixed the test cases where negative sampling was set to 0 for Doc2Vec. Updated the value with 5(default value)

  • Reason for the error -
    We must set either 'hs' (hierarchical softmax) or 'negative' to be positive for proper training. When both 'hs=0' and 'negative=0', there will be no training.

The cause for the above error being Doc2Vec do not update word embeddings if negative keyword is set to 0. So, in order to mitigate this, the contributors added a sanity check to the hs and negative arguments which checks if both hs and negative are set to 0 and throws the above error.

Here is the approved PR in the Gensim Library for the above check- piskvorky/gensim#3443

@bkleyn bkleyn merged commit 0e5d410 into fidelity:master Apr 26, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants