-
Notifications
You must be signed in to change notification settings - Fork 0
Add implementation of Aggregated Jaccard Index (AJI) metric #20
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
base: develop
Are you sure you want to change the base?
Add implementation of Aggregated Jaccard Index (AJI) metric #20
Conversation
Co-authored-by: kostrykin <[email protected]>
|
@copilot Instead of adding the |
Co-authored-by: kostrykin <[email protected]>
Done! I've moved the |
|
@copilot Split the different test cases in |
Co-authored-by: kostrykin <[email protected]>
Done! I've split the
Each test method now has a clear, focused purpose and all tests continue to pass. Commit: 966e5e3 |
|
@copilot Fix flake8 linting issues in segmetrics/regional.py |
Co-authored-by: kostrykin <[email protected]>
Fixed all flake8 linting issues in segmetrics/regional.py. The issues addressed include:
All tests pass and AJI functionality remains intact. Commit: 345a75f |
This comment has been minimized.
This comment has been minimized.
…thub.com:BMCV/segmetrics into copilot/fix-38de3775-eb30-402d-9a91-b7674515670d
This comment has been minimized.
This comment has been minimized.
|
Test coverage of 9ffee05: 88% |
This PR implements the Aggregated Jaccard Index (AJI) as described in Kumar et al. (2017) for evaluating instance segmentation performance in biomedical image analysis.
What is AJI?
The Aggregated Jaccard Index is a comprehensive metric that evaluates segmentation quality by:
The mathematical formulation is:
Implementation Details
New
AggregatedJaccardIndexclass:AsymmetricMeasureMixinandMeasurefollowing existing patternsmin_ref_size(default: 1) - Skip small ground truth objectsiou_threshold(default: 0.5) - Minimum IoU for considering objects as matchedUsage example:
Changes Made
AggregatedJaccardIndexclass insegmetrics/regional.pysegmetrics/__init__.pyto include the new measureValidation
The implementation has been thoroughly tested with:
This addition provides researchers in biomedical image analysis with a standardized implementation of this important metric for evaluating instance segmentation algorithms.
Reference
Kumar, N., Verma, R., Sharma, S., Bhargava, S., Vahadane, A., & Sethi, A. (2017). A dataset and a technique for generalized nuclear segmentation for computational pathology. IEEE Transactions on Medical Imaging, 36(7), 1550-1560.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.