-
-
Notifications
You must be signed in to change notification settings - Fork 623
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
Related to #2114: reformat docstrings in the 'metrics' folder #2221
Conversation
There is an error with code formatting, we use flake8, black, and isort, please check the formatting part in our contribution guide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, Anton! I left a comment.
ignite/metrics/accuracy.py
Outdated
@@ -105,18 +105,7 @@ class Accuracy(_BaseClassification): | |||
- `y` and `y_pred` must be in the following shape of (batch_size, num_categories, ...) and | |||
num_categories must be greater than 1 for multilabel cases. | |||
|
|||
In binary and multilabel cases, the elements of `y` and `y_pred` should have 0 or 1 values. Thresholding of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't agree with splitting this part, this line and the example should stay close IMO, what do you think @vfdev-5?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @KickItLikeShika , yes, I agree with your comment. @toxa23 let's not split this part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks, Anton!
Related to #2114
Description:
part 6 of 7, reformat docstrings in the 'metrics' folder, make sure all examples have "Examples:" header, move "Args:" block to the top of method documentation
Check list: