Image Explanations
Last updated
Last updated
Understanding how complex models make predictions is crucial for ensuring transparency, building trust, and identifying potential biases. Model explainers provide insights into how features influence outcomes, aiding in debugging and refining models.
In this demonstration, you can learn about using Alibi Explain's Anchor Images method to explore model explanations. This includes identifying the segments of an input image that had the most influence on the prediction and analyzing the precision of the Anchor and Coverage metrics.
This demo helps you learn about:
Launching an image classification pipeline
Sending prediction requests to the pipeline
Creating an explainer for the pipeline
Generating explanations for previously sent prediction requests
The model used in this demo is already trained to classify images based on the CIFAR10 dataset.
In the Overview page click Create new deployment.
Enter the following details for the deployment:
name: cifar10-classifier
namespace: seldon
Type: Seldon ML Pipeline
Configure the default predictor as follows:
Runtime: Tensorflow
Model Project: default
Model URI:
Storage Secret: (leave blank/none)
Click Next for the remaining step and click Launch.
When your deployment is launched successfully, the status of the deployment becomes Available
.
You can make a prediction request using the image of a frog from the cifar10 dataset. The image is a JSON file in the REST format of the Open Inference Protocol.
In the Overview page click the cifar10-classifier pipeline that you created.
In the deployment dashboard, click Predict in the left pane.
In the Predict page, click Browse and upload the cifar10-frog-oip.json
file.
Click Predict.
In the cifar10-classifier
deployment dashboard, click Add inside the MODEL EXPLANATION card..
In the Explainer Configuration Wizard, choose Image and click Next.
In the Explainer Types step, choose the Anchor option for Explainer Algorithms supported and click Next.
In the Explainer URI step, set the following details:
Explainer URI: gs://seldon-models/tfserving/cifar10/cifar10_anchor_image_py3.7_alibi-0.7.0
Model Project: default
Storage Secret: (leave blank/none)
Click Next for the remaining steps without changing any fields, and click Launch.
After sometime, the explainer should become available.
In the cifar10-classifier
deployment dashboard, click Requests in the left pane.
Click the View explanation button to generate explanations for the request.
After sometime the explanation for the requests is displayed.
Try the other demos or read our operations guide to learn more about how to use Seldon Enterprise Platform.