Skip to content

Conversation

@KickItLikeShika
Copy link
Contributor

@KickItLikeShika KickItLikeShika commented Mar 8, 2021

Fixes #1695
We tried to improve the contrib.metrics module at #1700 but we got some issues, the PR wasn't small, so it wasn't easy to solve these issues. I guess dividing this #1700 into smaller PRs will be better, and we would be able to solve these issues, i will create several PRs, each one contains the improvements for a one metric, and this is the first one for average_precision. In this PR the implementation and the tests of average_precision have been updated as discussed before.

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

@github-actions github-actions bot added the module: contrib Contrib module label Mar 8, 2021
@vfdev-5
Copy link
Collaborator

vfdev-5 commented Mar 8, 2021

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Mar 8, 2021

@Moh-Yakoub could you please make any suggestion on how to refactor tests using pytest parametrize ?

@KickItLikeShika
Copy link
Contributor Author

@vfdev-5 solved the doc error, waiting for @Moh-Yakoub suggestions

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Mar 8, 2021

Sounds good! Meanwhile, @KickItLikeShika, take a look at @Moh-Yakoub 's PR for accuracy: #1755

@KickItLikeShika
Copy link
Contributor Author

KickItLikeShika commented Mar 8, 2021

@vfdev-5, what's done here looks good, should i make something similar to it?

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Mar 8, 2021

@vfdev-5, what's done here looks good, should i make something similar it?

yes, that's the idea

@KickItLikeShika
Copy link
Contributor Author

KickItLikeShika commented Mar 9, 2021

@vfdev-5, check the updates please, the tests have been refactored, and the docstring error has been solved.

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KickItLikeShika thanks for the update! Left few comments

@KickItLikeShika KickItLikeShika requested a review from vfdev-5 March 9, 2021 13:03
Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @KickItLikeShika ! LGTM

@vfdev-5 vfdev-5 merged commit 64273e3 into pytorch:master Mar 9, 2021
@KickItLikeShika KickItLikeShika deleted the improve-average-precision branch March 9, 2021 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: contrib Contrib module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve ignite.contirb.metrics implementation

2 participants