Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

LISA_CNN_ExplainerV3-0.0.4.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

LISA_CNN_ExplainerV3-0.0.4-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page