Tabular Explanations
In this demo we will:
Create a pipeline which can be used to classify tabular data
Create an explainer that will offer insight into why a particular prediction was made for a given input
Send a prediction request to the pipeline
View the explanation
Register an income classifier model
Register a pre-trained income classifier SKLearn model. See the "Register an income classifier model" section in the Drift Detection demo for detailed instructions.
Configure predictions schema for classifier
Edit the model metadata to update the prediction schema for the model. See the "Configure predictions schema for classifier" section in the Drift Detection demo for detailed instructions.
Launch a Seldon ML Pipeline
Navigate to the
Model Catalogpage where the model was registered.Find the model and under the
Actiondropdown list, selectDeploy.
Enter the deployment details in the deployment creation wizard and click
Next:Name: income-classifier
Namespace: seldon
Type: Seldon ML Pipeline
The default predictor should already be filled in from the model catalog. Click
Next.Click
Nextfor the remaining steps, then clickLaunch.If your deployment is launched successfully, it will show an
Availablestatus in theOverviewpage.
Get Predictions
Click on the
income-classifierpipeline created in the previous section to enter the deployment dashboard.Inside the deployment dashboard, on the left navigation drawer, click on the
Predictbutton.On the
Predictpage, enter the following text:
Click the
Predictbutton.

Add an Explainer
There are currently 2 explainers available for tabular data classification:
Anchor Explainer
Kernel SHAP Explainer
From the
income-classifierdeployment dashboard, clickAddinside theModel Explanationcard.For step 1 of the Explainer Configuration Wizard, select
Tabularthen clickNext.
For step 2, set the following details:
For step 3, set the following details:
For step 2, set the following details:
For step 3, set the following details:
Skip step 4
For step 5, set following details
Click
Nextfor the remaining steps, then clickLaunch.If your explainer is launched successfully, both the pipeline and the explainer will show an
Availablestatus.
Explain a Prediction
Navigate to the
Requestspage using the left navigation drawer.Click on the
View explanationbutton to generate explanations for the request.





Congratulations, you've created an explanation for the request! 🥳
Next Steps
Why not try our other demos? Ready to dive in? Read our operations guide to learn more about how to use Enterprise Platform.
Last updated
Was this helpful?

