Skip to content

Commit

Permalink
Add warning message to plot_feature_outlier_image
Browse files Browse the repository at this point in the history
  • Loading branch information
mauicv committed Apr 24, 2023
1 parent 170109a commit 3c442a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alibi_detect/utils/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def plot_feature_outlier_image(od_preds: Dict,
instance_ids = instance_ids[:n_instances]

if outliers_only and n_instances == 0:
warnings.warn('No outliers found!', UserWarning, stacklevel=3)
return

n_cols = 2
Expand Down

0 comments on commit 3c442a6

Please sign in to comment.