-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
ZeroDivisionError in Doc2Vec.build_vocab #518
Comments
Too fast... or the clock too coarse! This definitely shouldn't happen; I'll likely add a +0.001 (or similar). Then the rate-estimate may occasionally be off, but the code won't error. Thanks for the report! |
@gojomo Pinging this issue. Is it an easy fix that can be include in this month's release? |
gojomo
added a commit
that referenced
this issue
Jan 16, 2016
tmylk
added a commit
that referenced
this issue
Jan 23, 2016
fixes #518: tiny 10µsec fudge against 0 elapsed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I call
model.build_vocab(docs_iterator)
sometimes I gotZeroDivisionError
:A few lines above in doc2vec.py
interval_start
is defined asinterval_start = default_timer()
and in the for loop we havePerhaps my system is too fast 😃
The text was updated successfully, but these errors were encountered: