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

point_confusion_matrix when both ground truth and predicted anomalies lists are empty. #527

Open
Linh-nk opened this issue Apr 9, 2024 · 1 comment
Labels
enhancement Improvements on the current features

Comments

@Linh-nk
Copy link

Linh-nk commented Apr 9, 2024

  • Orion version: 0.5.1
  • Python version: 3.8.16
  • Operating System: Darwin Kernel Version 21.6.0

Description

When both ground truth and predicted anomalies lists are empty, point_confusion_matrix function gave ValueError: min() arg is an empty sequence
Screen Shot 2024-04-09 at 11 02 53 AM

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
@sarahmish
Copy link
Collaborator

we should add a condition to handle this situation.

expected behavior would be to return an empty confusion matrix, i.e. None.

@sarahmish sarahmish added the enhancement Improvements on the current features label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements on the current features
Projects
None yet
Development

No branches or pull requests

2 participants