In the following guide we will explain how one can visualize SHAP values in Aporia to gain better explainability for their model’s predictions and increase trust.
Ingesting your Shaply values in Aporia can be done by adding a column with the following naming convention
For example, the SHAP column corresponding to a
- 1.the SHAP column should not be mapped to the version schema but you must include it in your SQL query when integrating your training/serving dataset.
_shapmust be lowercase and the
<feature_name>must be same case as the feature in Aporia. For those of you who use Snowflake we would recommend to pay attention that if the value is read directly from a table using
SELECT *, the case-ness of the column name will be saved. Otherwise, your can force Snowflake to preserve case by using double quotes in the query. For example,
SELECT 1 AS a, 2 AS "b"would return a table with 2 columns:
Exploring SHAP values can be done via our Data Points cell as part of an Investigation Case.
When clicking on explain you’ll be able to view all the available SHAP values as well as getting a textual business explanation which you can share with stakeholders.
Click on Explain to view the SHAP values of the chosen prediction
Copy the business explanation to share with stakeholders