You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+66-22Lines changed: 66 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,15 @@ The TrustyAI KServe integration provides explanations for predictions made by AI
12
12
13
13
The TrustyAI explainer can be added to KServe `InferenceServices`. Here are YAML configurations to deploy explainers with LIME and SHAP:
14
14
15
-
### LIME Explainer `InferenceService`
15
+
### LIME and SHAP Explainer `InferenceService`
16
16
17
-
By default, the TrustyAI KServe explainer will use the LIME explainer. You can deploy the explainer using the following YAML configuration:
17
+
By default, the TrustyAI KServe explainer will use the **both the LIME and SHAP explainer**. You can deploy the explainers using the following YAML configuration:
This command sends a JSON payload to the `:explain` endpoint and retrieves an explanation for the prediction. The response structure includes the saliencies of each feature contributing to the prediction, as shown below:
53
+
This command sends a JSON payload to the `:explain` endpoint and retrieves an explanation for the prediction. The response structure includes the explainer type and saliencies of each feature contributing to the prediction, as shown below:
To use the **LIME explainer only**, you can deploy the explainer by specifying it as an environment variable and using the following YAML configuration (initial part will be identical to the previous `InferenceService`):
To use the SHAP explainer, you can deploy the explainer by specifying it as an environment variable and using the following YAML configuration (initial part will be identical to the previous `InferenceService`):
120
+
To use the **SHAP explainer only**:
77
121
78
122
79
123
```yaml
@@ -102,15 +146,15 @@ spec:
102
146
value: "SHAP"
103
147
```
104
148
105
-
The explanation request will be identical to the LIME explainer case.
149
+
The explanation request for either LIME or SHAP will be identical to both LIME and SHAP.
106
150
107
151
## Configuration
108
152
109
153
The following environment variables can be used in the `InferenceService` to customize the explainer:
0 commit comments