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.
2 parents 98a2802 + 170109a commit 9d10d24Copy full SHA for 9d10d24
alibi_detect/utils/visualize.py
@@ -77,6 +77,10 @@ def plot_feature_outlier_image(od_preds: Dict,
77
instance_ids = list(range(len(od_preds['data']['is_outlier'])))
78
n_instances = min(max_instances, len(instance_ids))
79
instance_ids = instance_ids[:n_instances]
80
+
81
+ if outliers_only and n_instances == 0:
82
+ return
83
84
n_cols = 2
85
86
if n_channels == 3:
0 commit comments