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

Refactor anomaly score computation #111

Merged
merged 7 commits into from
Apr 10, 2024

Conversation

lorenzomammana
Copy link
Contributor

Summary

Describe the purpose of the pull request, including:

Change the way anomaly scores are normalized by default, instead of using a [0-1] range with a 0.5 threshold, the scores are now normalized to a [0-1000] range with a threshold of 100, the new score represents the distance from the selected threshold, for example, a score of 200 means that the anomaly score is 100% of the threshold above the threshold itself, a score of 50 means that the anomaly score is 50% of the threshold below. This change is intended to make the scores more interpretable and easier to understand, also it makes the score independent from the min and max
scores in the dataset.

Type of Change

Please select the one relevant option below:

  • Breaking change

Checklist

Please confirm that the following tasks have been completed:

  • I have tested my changes locally and they work as expected. (Please describe the tests you performed.)
  • I have added unit tests for my changes, or updated existing tests if necessary.
  • I have updated the documentation, if applicable.
  • I have installed pre-commit and run locally for my code changes.

@lorenzomammana lorenzomammana added the enhancement New feature or request label Apr 10, 2024
@lorenzomammana lorenzomammana requested a review from rcmalli April 10, 2024 09:52
@lorenzomammana lorenzomammana self-assigned this Apr 10, 2024
@lorenzomammana lorenzomammana merged commit 1c04008 into main Apr 10, 2024
2 checks passed
@lorenzomammana lorenzomammana deleted the feature/refactor-anomaly-score-computation branch April 10, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants