sintel-dev / Orion

A machine learning library for detecting anomalies in signals.
https://sintel.dev/Orion/
MIT License
1.03k stars 159 forks source link

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

Open Linh-nk opened 5 months ago

Linh-nk commented 5 months ago

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 commented 1 week ago

we should add a condition to handle this situation.

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