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

How to map scores to predicted labels to compute F1 score with one-class objective #39

Open
alishan2040 opened this issue Mar 19, 2023 · 1 comment

Comments

@alishan2040
Copy link

alishan2040 commented Mar 19, 2023

Hi @lukasruff ,

Could you please explain how can I map the predicted scores into predicted labels to compute precision, recall and f1 score. Line 147 from src/optim/deepSVDD_trainer.py
_, labels, scores = zip(*idx_label_score)
For soft-boundary, I found in the paper that +ve values are considered as outliers while negative values (< 0) are treated are normal (inliers). Does this apply to the one-class objective as well?
Thanks,

@szgy66
Copy link

szgy66 commented Aug 28, 2024

Hi @lukasruff ,

Could you please explain how can I map the predicted scores into predicted labels to compute precision, recall and f1 score. Line 147 from src/optim/deepSVDD_trainer.py _, labels, scores = zip(*idx_label_score) For soft-boundary, I found in the paper that +ve values are considered as outliers while negative values (< 0) are treated are normal (inliers). Does this apply to the one-class objective as well? Thanks,

I also want to know, had you solved it?

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

No branches or pull requests

2 participants