openvinotoolkit / anomalib

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
https://anomalib.readthedocs.io/en/latest/
Apache License 2.0
3.69k stars 655 forks source link

πŸ”¨Refactor methods across files #2321

Closed ashwinvaidya17 closed 1 week ago

ashwinvaidya17 commented 1 week ago

πŸ“ Description

✨ Changes

Select what type of change your PR is:

βœ… Checklist

Before you submit your pull request, please make sure you have completed the following steps:

For more information about code review checklists, see the Code Review Checklist.

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 74.51737% with 66 lines in your changes missing coverage. Please review.

Please upload report for BASE (feature/pimo@4e117cf). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/anomalib/metrics/per_image/_validate.py 69.62% 41 Missing :warning:
src/anomalib/metrics/per_image/dataclasses.py 72.28% 23 Missing :warning:
src/anomalib/metrics/per_image/binclf_curve.py 85.71% 1 Missing :warning:
src/anomalib/metrics/per_image/pimo.py 90.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## feature/pimo #2321 +/- ## =============================================== Coverage ? 80.68% =============================================== Files ? 255 Lines ? 11695 Branches ? 0 =============================================== Hits ? 9436 Misses ? 2259 Partials ? 0 ``` | [Flag](https://app.codecov.io/gh/openvinotoolkit/anomalib/pull/2321/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openvinotoolkit) | Coverage Ξ” | | |---|---|---| | [](https://app.codecov.io/gh/openvinotoolkit/anomalib/pull/2321/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openvinotoolkit) | `80.68% <74.51%> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openvinotoolkit#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.