-
-
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
Initialization in text #2942
Comments
Fair point --- I was avoiding the divide-by-zero error, but if there are no true or false positives, I guess the precision should be 0.0. It should be more correct to initialize Do you want to make a pull request? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In
evaluate
method fromhttps:/explosion/spacy/blob/master/examples/training/train_textcat.py
tp, fp, fn, and tn (true positives etc) are initialized to 1e-8 (see below)
Why are the values not initlaized to 0? When there are no true positives the precision is 0.5, That doesn't seem right.
The text was updated successfully, but these errors were encountered: