-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add Average Precision to metrics #8089
Add Average Precision to metrics #8089
Conversation
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
for more information, see https://pre-commit.ci
/build |
hi @KumoLiu, could you please have a look at this PR? |
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, overall looks good to me.
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.
Looks good to me too, I had a minor comment and it would be nice to combine the last 2 test files, it would be better to have fewer test files if possible.
Hi @thibaultdvx we've updated our tests with a directory structure, if you could please look over comments and update where your test files are we can come back to this PR. Thanks! |
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> Signed-off-by: Thibault de Varax <154365476+thibaultdvx@users.noreply.github.com>
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
a10d5c6
to
4fc9cf5
Compare
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
Hi @thibaultdvx I'm going to merge recent changes into your branch and see if that sorts the test issues, I don't think it was related to PR either. |
I think this is good to go now, @KumoLiu if you could please trigger blossom, thanks. |
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com> Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
/build |
Hi @thibaultdvx, please help fix the format issue: https://github.com/Project-MONAI/MONAI/actions/runs/13406057032/job/37446075381?pr=8089 |
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org>
/build |
Fixes Project-MONAI#8085. ### Description Average Precision is very similar to ROCAUC, so I was very much inspired by the ROCAUC implementation. More precisely, I created: - `AveragePrecisionMetric` and `compute_average_precision` in `monai.metrics`, - a handler called `AveragePrecision` in `monai.handlers`, - three unittest modules: `test_compute_average_precision.py`, `test_handler_average_precision.py` and `test_handler_average_precision_dist.py`. I also modified the docs to mention Average Precision. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [x] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [x] In-line docstrings updated. - [x] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: thibaultdvx <thibault.devarax@icm-institute.org> Signed-off-by: Thibault de Varax <154365476+thibaultdvx@users.noreply.github.com> Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com> Signed-off-by: Can-Zhao <volcanofly@gmail.com>
Fixes #8085.
Description
Average Precision is very similar to ROCAUC, so I was very much inspired by the ROCAUC implementation.
More precisely, I created:
AveragePrecisionMetric
andcompute_average_precision
inmonai.metrics
,AveragePrecision
inmonai.handlers
,test_compute_average_precision.py
,test_handler_average_precision.py
andtest_handler_average_precision_dist.py
.I also modified the docs to mention Average Precision.
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.