We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d10d24 commit 6408792Copy full SHA for 6408792
alibi_detect/utils/visualize.py
@@ -3,6 +3,7 @@
3
import pandas as pd
4
from sklearn.metrics import roc_curve, auc
5
from typing import Dict, Union
6
+import warnings
7
8
9
def plot_instance_score(preds: Dict,
@@ -79,6 +80,7 @@ def plot_feature_outlier_image(od_preds: Dict,
79
80
instance_ids = instance_ids[:n_instances]
81
82
if outliers_only and n_instances == 0:
83
+ warnings.warn('No outliers found!', UserWarning, stacklevel=3)
84
return
85
86
n_cols = 2
0 commit comments