Closed katywarr closed 4 years ago
I had the same issue, still dont know how to solve.
Thanks @JafarBadour, I'll take a look at it in the next few days.
The problem is fixed in a later version of keras-vis (1.5) which has not been released to PyPi and is described here: keras-vis/issues/158. The quick fix is to upgrade the version using and to re-run the existing notebooks:
pip install git+https://github.com/raghakot/keras-vis.git -U
The LIME library also provides a nice (different) approach to displaying the explainability behind the classifications. This wasn't included in the book. I am rewriting the Jupyter saliency notebooks to include this approach.
The new notebooks will require the following dependencies:
For LIME:
conda install lime
conda instal scikit-learn
For keras-vis:
pip install git+https://github.com/raghakot/keras-vis.git -U
To do:
strengthening-dnns.yml
) with those described in previous comment so folk don't need to do manual install.Unfortunately, there's no easy way to update the yml with the required pip install. I have added a comment to the FashionMNIST Jupyter notebook to address this.
Both updated notebooks were fixed in the commit here.
This bug occurs when Keras-vis visualize_saliency is called in both:
For example: