Explanations generation
In this section, we share endpoints used to generate explanations. A model and an input sample are required.
List allowed explanations
GET
https://api.expai.io/api/explain/get_allowed
EXPAI implements several types of explanations. This endpoint returns all available techniques including a summary and preview.
Headers
Model Explanation
POST
https://api.expai.io/api/explain/<model_id>/graphics
Generate a Model Explanation. You can filter your data to provide insights based on meaningful subsets. Returns a Plotly JSON object and the raw values for the explanation.
Path Parameters
Headers
Request Body
Variable Explanation
POST
https://api.expai.io/api/explain/<model_id>/variable/graphics
Generate a Variable Explanation. You can filter your data to provide insights based on meaningful subsets. Returns a Plotly JSON object and the raw values for the explanation.
Path Parameters
Headers
Request Body
Prediction Explanation
POST
https://api.expai.io/api/explain/<model_id>/sample/graphics
Generate a Prediction Explanation. You can filter your data to provide insights based on meaningful subsets. Returns a Plotly JSON object and the raw values for the explanation.
Path Parameters
Headers
Request Body
WHAT IF Explanation
POST
https://api.expai.io/api/explain/<model_id>/what_if
Generate a WHAT IF Explanation. You can filter your data to provide insights based on meaningful subsets. Returns a Plotly JSON object and the raw values for the explanation.
Path Parameters
Headers
Request Body
WHAT IF BATTLE Explanation
POST
https://api.expai.io/api/explain/<model_id>/variable/graphics
Generate a WHAT IF BATTLE Explanation. You can filter your data to provide insights based on meaningful subsets. Returns a Plotly JSON object and the raw values for the explanation.
Path Parameters
Headers
Request Body
Store Explanation
POST
https://api.expai.io/api/projects/<project_id>/explanation/create
Store an explanation within a project. Body parameters should contain those used to generate the explanation.
Path Parameters
Headers
Request Body
Delete Explanation
DELETE
https://api.expai.io/api/projects/<project_id>/explanation/<explanation_id>
Delete a Model in a Project
Path Parameters
Headers
List All Explanations
GET
https://api.expai.io/api/projects/<project_id>/explanation/list
List all explanations stored within a project
Path Parameters
Headers
List all Explanations containing a string in title
GET
https://api.expai.io/api/projects/<project_id>/explanation/list/contains/<text>
List all explanations containing a given text in their titles.
Path Parameters
Headers
List last N Explanations
GET
https://api.expai.io/api/projects/<project_id>/explanation/list/last/<N>
List last N explanations stored within a project
Path Parameters
Headers
Last updated