Skip to content

Commit d7af3a4

Browse files
author
AWS
committed
Amazon SageMaker Runtime Update: A new parameter called EnableExplanations is added to InvokeEndpoint API to enable on-demand SageMaker Clarify online explainability requests.
1 parent 80861d4 commit d7af3a4

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon SageMaker Runtime",
4+
"contributor": "",
5+
"description": "A new parameter called EnableExplanations is added to InvokeEndpoint API to enable on-demand SageMaker Clarify online explainability requests."
6+
}

services/sagemakerruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959
"pattern":"\\p{ASCII}*",
6060
"sensitive":true
6161
},
62+
"EnableExplanationsHeader":{
63+
"type":"string",
64+
"max":64,
65+
"min":1,
66+
"pattern":".*"
67+
},
6268
"EndpointName":{
6369
"type":"string",
6470
"max":63,
@@ -227,6 +233,12 @@
227233
"documentation":"<p>If you provide a value, it is added to the captured data when you enable data capture on the endpoint. For information about data capture, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html\">Capture Data</a>.</p>",
228234
"location":"header",
229235
"locationName":"X-Amzn-SageMaker-Inference-Id"
236+
},
237+
"EnableExplanations":{
238+
"shape":"EnableExplanationsHeader",
239+
"documentation":"<p>An optional JMESPath expression used to override the <code>EnableExplanations</code> parameter of the <code>ClarifyExplainerConfig</code> API. See the <a href=\"https://docs.aws.amazon.com/clarify-online-explainability-create-endpoint.html#clarify-online-exaplainability-create-endpoint-enable\">EnableExplanations</a> section in the developer guide for more information. </p>",
240+
"location":"header",
241+
"locationName":"X-Amzn-SageMaker-Enable-Explanations"
230242
}
231243
},
232244
"payload":"Body"
@@ -237,7 +249,7 @@
237249
"members":{
238250
"Body":{
239251
"shape":"BodyBlob",
240-
"documentation":"<p>Includes the inference provided by the model.</p> <p>For information about the format of the response body, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html\">Common Data Formats-Inference</a>.</p>"
252+
"documentation":"<p>Includes the inference provided by the model. </p> <p>For information about the format of the response body, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html\">Common Data Formats-Inference</a>.</p> <p>If the explainer is activated, the body includes the explanations provided by the model. For more information, see the <b>Response section</b> under <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-invoke-endpoint.html#clarify-online-explainability-response\">Invoke the Endpoint</a> in the Developer Guide.</p>"
241253
},
242254
"ContentType":{
243255
"shape":"Header",

0 commit comments

Comments
 (0)