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_Prediction
How to use it?
Open terminal and type python/python3 according to your OS.
import Explain_LISA_CNN_01 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_test_4-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e035d361b0acf5a7607e67bef503efbf538f2569193919dbe4e5c9c086920da1 |
|
MD5 | 693e2cfc5609e6e55cea8d6997ffa8d8 |
|
BLAKE2b-256 | fefdeccbf86e7597e6bc101fe19fec0997b3fb8c91b00921db9d5ea85513f262 |
Hashes for Explain_LISA_CNN_test_4-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08e878327c5eaf5adc42799c7be4da7633e005f8775212f9771ac7ba335b7aae |
|
MD5 | 3021e1915a3c0c7beadb3c6b4095d755 |
|
BLAKE2b-256 | bb587d1b15d19f1a7f24fddc0a148dc626a1abe5c771edd102e12b2414ec5cb4 |