Skip to content
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

Added the IQR Detector #2441

Merged
merged 9 commits into from
Jul 4, 2024
Merged

Added the IQR Detector #2441

merged 9 commits into from
Jul 4, 2024

Conversation

u8-igor
Copy link
Contributor

@u8-igor u8-igor commented Jul 2, 2024

Checklist before merging this PR:

  • Mentioned all issues that this PR fixes or addresses.
  • Summarized the updates of this PR under Summary.
  • Added an entry under Unreleased in the Changelog.

Closes #2319.

Summary

Added IQRDetector, allowing for detecting anomalies using the interquartile range algorithm.
It is based on the QuantileDetector and has a scale parameter for adjusting the acceptable range.

Other Information

Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.79%. Comparing base (e246a01) to head (c7a54cb).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2441      +/-   ##
==========================================
- Coverage   93.79%   93.79%   -0.01%     
==========================================
  Files         138      139       +1     
  Lines       14654    14666      +12     
==========================================
+ Hits        13745    13756      +11     
- Misses        909      910       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@u8-igor u8-igor marked this pull request as ready for review July 2, 2024 13:26
Copy link
Collaborator

@dennisbader dennisbader left a comment

Choose a reason for hiding this comment

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

Thanks for this great PR @u8-igor, it already looks really good 🚀
Your code is well-written.

I just added a couple of minor suggestions where we could try to simplify a bit here and there.

darts/ad/detectors/iqr_detector.py Outdated Show resolved Hide resolved
darts/ad/detectors/iqr_detector.py Outdated Show resolved Hide resolved
darts/ad/detectors/iqr_detector.py Show resolved Hide resolved
darts/ad/detectors/iqr_detector.py Outdated Show resolved Hide resolved
darts/ad/detectors/iqr_detector.py Outdated Show resolved Hide resolved
darts/tests/ad/test_detectors.py Outdated Show resolved Hide resolved
darts/tests/ad/test_detectors.py Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
darts/tests/ad/test_detectors.py Outdated Show resolved Hide resolved
darts/tests/ad/test_detectors.py Outdated Show resolved Hide resolved
@u8-igor u8-igor requested a review from dennisbader July 3, 2024 14:42
Copy link
Collaborator

@dennisbader dennisbader left a comment

Choose a reason for hiding this comment

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

Looks perfect now, thanks a lot @u8-igor 🚀 Ready to merge once all tests have passed 💯

@u8-igor u8-igor merged commit e8b5daa into unit8co:master Jul 4, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add IQR Anomaly Detector
2 participants