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

Compute the optimal threshold as average between the max good and min bad score when the F1 is 1 #23

Merged

Conversation

lorenzomammana
Copy link

Description

Right now when there's a gap between the good samples and the bad ones and the anomaly score is 1 we select as threshold the minimum of bad scores, this is suboptimal as it doesn't make good usage of the existing gap.
With this PR if the F1 score is 1 the threshold is instead computed as the average between the max of good scores and min of bad scores

This is in example of the old behaviour
cumulative_histogram

And the new one

cumulative_histogram_new

@github-actions github-actions bot added the Docs label Apr 19, 2024
@lorenzomammana lorenzomammana requested a review from rcmalli April 19, 2024 13:34
@lorenzomammana lorenzomammana merged commit 5fa796d into orobix-master Apr 22, 2024
2 of 3 checks passed
@lorenzomammana lorenzomammana deleted the feat/improve-optimal-threshold-computation branch April 22, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants