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

default-value of 'hs' (hierarchical-softmax) parameter changed w/o explicit warning in 0.12.4 #673

Closed
Tensordry opened this issue Apr 20, 2016 · 3 comments
Labels
difficulty easy Easy issue: required small fix documentation Current issue related to documentation

Comments

@Tensordry
Copy link

In vs. 0.12.4, the new default of 'hs=0' stays in accordance with the online documenation, but is in contrast to the default-behavior of versions <= 0.12.2.
If not set explicitely set to 'hs=1', the w2vec.score() function will fail with the error message "we have only implemented score for hs". In a productive environment, this error message might appear as not trivial, and is assumed to be more productive when pointing directly to the change-need of the model-parameters.

@piskvorky piskvorky added the bug Issue described a bug label Apr 20, 2016
@piskvorky
Copy link
Owner

Thank you for reporting @Tensordry! I agree the message is not very illuminating, especially if this comes up as "default" now.

@gojomo @mataddy can you look into this and suggest a fix?

@gojomo
Copy link
Collaborator

gojomo commented Apr 20, 2016

@Tensordry – Would simply having the error repeat the same language from the doc-comment be sufficient? The doc-comment for score() already says:

We have currently only implemented score for the hierarchical softmax scheme, so you need to have run word2vec with hs=1 and negative=0 for this to work.

@Tensordry
Copy link
Author

Hello Gordon,

  • From my point of view: an additional reference to the changed default-value, as a likely
    cause for the surprising stopping behavior of the lib, would have been a time-saver for me.
    So I guess, the error message gets even more improved, by adding your proposal plus such a
    reference ... ;-)

Am 20.04.2016 um 11:07 schrieb Gordon Mohr:

@Tensordry https://github.com/Tensordry – Would simply having the error repeat the same
language from the doc-comment be sufficient? The doc-comment presently says:

|We have currently only implemented score for the hierarchical softmax scheme, so you need to
have run word2vec with hs=1 and negative=0 for this to work. |


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#673 (comment)

@tmylk tmylk added documentation Current issue related to documentation difficulty easy Easy issue: required small fix and removed bug Issue described a bug labels Oct 6, 2016
accraze added a commit to accraze/gensim that referenced this issue Dec 22, 2016
tmylk pushed a commit that referenced this issue Jan 3, 2017
Fixes #673 added default-hs explicit warning
jayantj pushed a commit to jayantj/gensim that referenced this issue Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty easy Easy issue: required small fix documentation Current issue related to documentation
Projects
None yet
Development

No branches or pull requests

4 participants