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

Add RankBasedAnomalyScorer as an anomaly scorer #1192

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

bloebp
Copy link
Member

@bloebp bloebp commented May 28, 2024

This is very closely related to the RescaledMedianCDFQuantileScorer but a statistically more well-defined approach. However, it is also slightly more conservative for small sample sizes. Furthermore, it changes the way equal samples are counted in MedianCDFQuantileScorer by also including the test sample itself. This prevents a p-value of 0.

@bloebp bloebp requested a review from amit-sharma May 28, 2024 16:49
@bloebp bloebp force-pushed the gcm_ranked_based_scorer branch 2 times, most recently from 0c0fe16 to 1eff1ba Compare May 28, 2024 17:52
amit-sharma
amit-sharma previously approved these changes May 29, 2024
Copy link
Member

@amit-sharma amit-sharma left a comment

Choose a reason for hiding this comment

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

Looks good (didn't check the details of anomaly scoring algorithm though).

This is very closely related to the RescaledMedianCDFQuantileScorer but a statistically more well-defined approach. However, it is also slightly more conservative for small sample sizes.
Furthermore, it changes the way equal samples are counted in MedianCDFQuantileScorer by also including the test sample itself. This prevents a p-value of 0.

Signed-off-by: Patrick Bloebaum <[email protected]>
@bloebp
Copy link
Member Author

bloebp commented May 29, 2024

Thanks! I slightly updated the docstring.

@bloebp bloebp merged commit fa1e7fc into main Jun 4, 2024
30 checks passed
@bloebp bloebp deleted the gcm_ranked_based_scorer branch June 4, 2024 15:11
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.

2 participants