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_ExplainerV2
How to use it?
Open terminal and type python/python3 according to your OS.
import LISA_CNN_ExplainerV2 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_ExplainerV2-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 199802c3d575460477bd8e1d9b141fb9dc63b78b89b88732757720391d911b2a |
|
MD5 | 618ab6df00f49ec5a8ae4b9e0c1ea102 |
|
BLAKE2b-256 | 323cdf3e16b0bf80ca99809cb2458a39b1dd573ec5d2d8f6ae49beee7bce3a83 |
Hashes for LISA_CNN_ExplainerV2-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 329ab298ca7721c49decb4026bada7c0cb85465f36477279df1f4bb1641667e9 |
|
MD5 | 5475478e7432f9c821722ff0027d5ea4 |
|
BLAKE2b-256 | 625fa921e9de0fce4f971690f8ce4c1269803a8525c8762a90321860dcac5eca |