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_ExplainerV3
How to use it?
Open terminal and type python/python3 according to your OS.
import LISA_CNN_ExplainerV3 as e \n
e.ExplainLISA(img,class_names,img_shape,model,img1,img2,scale,filter_radius) \n
e.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_ExplainerV4-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b663daf3f0fc86f48319bd4e8136eaf830910635fc3eb09ca96c7185cd74977 |
|
MD5 | 0b14498935928e8d02f482c94faf1515 |
|
BLAKE2b-256 | c7d3bc8c7fb80dea791df27813f993d0241965ac55df7f1847982e635445ed69 |
Hashes for LISA_CNN_ExplainerV4-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d28cb733fa4a8daed997c20c34059c4ff0a89bc29628451ddae714cfd8e6daa |
|
MD5 | 19fe77ef1c116885ec533eaa8cea8dd0 |
|
BLAKE2b-256 | fb05eb92969bd1fda2b15ad92dc6d00777e7b5f3f15bae366302bf01504452df |