Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid failure of plot_feature_outlier_image
I call the function this way: plot_feature_outlier_image(preds, # output of an prediction ds, # my set of images X_recon=recon, # reconstructed set of images max_instances=5, # max nb of instances to display n_channels=3, # number of channels of the images figsize=(20,10), outliers_only=True) # only show outlier predictions. this function fails when no outlier is detected and parameter set to True In case there is no outlieres detected and the parameter outliers_only is set to True, then the function fails, because it calls plt.subplots(nrows=0, ....). 0 rows throws the error.
- Loading branch information