Skip to content

Commit

Permalink
Merge branch 'patch-1' of github.com:signupatgmx/alibi-detect into si…
Browse files Browse the repository at this point in the history
…gnupatgmx-patch-1
  • Loading branch information
mauicv committed Apr 24, 2023
2 parents 98a2802 + 170109a commit 9d10d24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alibi_detect/utils/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def plot_feature_outlier_image(od_preds: Dict,
instance_ids = list(range(len(od_preds['data']['is_outlier'])))
n_instances = min(max_instances, len(instance_ids))
instance_ids = instance_ids[:n_instances]

if outliers_only and n_instances == 0:
return

n_cols = 2

if n_channels == 3:
Expand Down

0 comments on commit 9d10d24

Please sign in to comment.