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 Explain_LISA_CNN_Research
How to use it?
Open terminal and type python/python3 according to your OS.
import Explain_LISA_CNN_Research as e
e.ExplainLISA(img,class_names,img_shape,model,img1,img2,scale,filter_radius)
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 Explain_LISA_CNN_Research-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a021920e71940da143e17f701c8012d5a5132ea44e0660965a127924c179f738 |
|
MD5 | 48cc63a19ac45d3a3dac39582da282d0 |
|
BLAKE2b-256 | b45c18f595fe811a8b799b565e460c4f64c73da4f1b39186b2b0f5e9e8d15271 |
Hashes for Explain_LISA_CNN_Research-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c27227be844fb81905ac7ad5e8bf497aabdb0c0f8f3b0a22d6995830a4fc278 |
|
MD5 | 2cf2b9064389b03a34b269b32c73e350 |
|
BLAKE2b-256 | ba12aa9e683087ef393da22668e1d79daf680f50fdea375ca2415ae1b4af712a |