Skip to content

Fix the wrong stat and accuracy calculation #539

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

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

AlbertYang0112
Copy link
Contributor

Two bugs are fixed in this pr.

  • get_stats under multiclass mode. matched = target_i * (output_i == target_i) Wrong predictions will be treated as a matched prediction for class 0.
  • _accuracy. Only true-positive is counted, true-negative should also be included.

One more question. Two kinds of APIs are provided for metric calculation, the one under utils and the one under metrics, which one is more preferable?

@qubvel
Copy link
Collaborator

qubvel commented Jan 17, 2022

Thanks! Nice catch!
utils package is going to be removed in near future

@qubvel qubvel merged commit 428cddc into qubvel-org:master Jan 17, 2022
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.

2 participants