Unified Explanation Provider For CNNs
Project description
Explain LISA
It takes the following.
img: local path of img to be explained
class_names: the classes available as predictions for the given model
img_shape: shape of the image accepts by the neural network
model: the model to be explained get from tf.keras.models.load_model("your model path")
img1: local path background data point for produce explanations with SHAP
img2: local path background data point for produce explanations with SHAP
scale: for manual image scaling if scaling layer absent in the model to be explained
filter_radius: the pixel value of the radius of the High pass filter
Installation
pip install LISA_CNN_ExplainerV1
How to use it?
Open terminal and type python/python3 according to your OS.
import LISA_CNN_ExplainerV1 as e \n
e.ExplainLISA(img,class_names,img_shape,model,img1,img2,scale,filter_radius) \n
ExplainLISA.displayImages() \n
License
© 2021 Sudil H.P Abeyagunasekera
This repository is licensed under the MIT license. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for LISA_CNN_ExplainerV1-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e643df36941fdd7efa6de6242c92b275196c93d59c54fd3fb9dcd1fdf2eb39 |
|
MD5 | 147f13cfc17d8105142432012654cbf6 |
|
BLAKE2b-256 | 2cedaa215874ce288e3dc38e17480b8ac322b1f34a13cd3d1247ad67deaa6e91 |
Hashes for LISA_CNN_ExplainerV1-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 700b9587a50a773139efd67b5e70aa52d85d9dbb00a8fb1ca0e03cbec0b4f494 |
|
MD5 | c3ec53371a0df9517d01b3c26047582c |
|
BLAKE2b-256 | 78e444c8957d0f82a02dab8e6298793e7269f3b2e57926a367345e3689e2dabc |