aws-sdk-sagemaker 1.142.0 → 1.143.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sagemaker/client.rb +84 -1
- data/lib/aws-sdk-sagemaker/client_api.rb +73 -0
- data/lib/aws-sdk-sagemaker/types.rb +519 -3
- data/lib/aws-sdk-sagemaker.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50a0ff502625d0b99554e52760f4ce77527d01ce15abce1cfbb3b7d599be3363
|
4
|
+
data.tar.gz: 0f1ad9a34af3091d44925ab8ff11a221353826efec90c259579bbc97ed6cc12a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c97e56af40d4652e3f8ab492b1a83efd5b13ade5ab4100d479fa833717491e302846f9f8d4e6f335a4118775ad491ac24fdd5ac7f9d6168ea272987586e5fdfa
|
7
|
+
data.tar.gz: 0ccac1ca63d34eff1f7801d1053dde8da3bda39995ea95467cd688d3686c2e84fe9b58202290a9b38cf328e2b8e29e7927068548ed3c8d9ea9d58d7bcaf717f6
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.143.0 (2022-09-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - A new parameter called ExplainerConfig is added to CreateEndpointConfig API to enable SageMaker Clarify online explainability feature.
|
8
|
+
|
4
9
|
1.142.0 (2022-09-29)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.143.0
|
@@ -2473,6 +2473,9 @@ module Aws::SageMaker
|
|
2473
2473
|
#
|
2474
2474
|
# [1]: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_runtime_InvokeEndpointAsync.html
|
2475
2475
|
#
|
2476
|
+
# @option params [Types::ExplainerConfig] :explainer_config
|
2477
|
+
# A member of `CreateEndpointConfig` that enables explainers.
|
2478
|
+
#
|
2476
2479
|
# @return [Types::CreateEndpointConfigOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2477
2480
|
#
|
2478
2481
|
# * {Types::CreateEndpointConfigOutput#endpoint_config_arn #endpoint_config_arn} => String
|
@@ -2537,6 +2540,38 @@ module Aws::SageMaker
|
|
2537
2540
|
# },
|
2538
2541
|
# },
|
2539
2542
|
# },
|
2543
|
+
# explainer_config: {
|
2544
|
+
# clarify_explainer_config: {
|
2545
|
+
# enable_explanations: "ClarifyEnableExplanations",
|
2546
|
+
# inference_config: {
|
2547
|
+
# features_attribute: "ClarifyFeaturesAttribute",
|
2548
|
+
# content_template: "ClarifyContentTemplate",
|
2549
|
+
# max_record_count: 1,
|
2550
|
+
# max_payload_in_mb: 1,
|
2551
|
+
# probability_index: 1,
|
2552
|
+
# label_index: 1,
|
2553
|
+
# probability_attribute: "ClarifyProbabilityAttribute",
|
2554
|
+
# label_attribute: "ClarifyLabelAttribute",
|
2555
|
+
# label_headers: ["ClarifyHeader"],
|
2556
|
+
# feature_headers: ["ClarifyHeader"],
|
2557
|
+
# feature_types: ["numerical"], # accepts numerical, categorical, text
|
2558
|
+
# },
|
2559
|
+
# shap_config: { # required
|
2560
|
+
# shap_baseline_config: { # required
|
2561
|
+
# mime_type: "ClarifyMimeType",
|
2562
|
+
# shap_baseline: "ClarifyShapBaseline",
|
2563
|
+
# shap_baseline_uri: "Url",
|
2564
|
+
# },
|
2565
|
+
# number_of_samples: 1,
|
2566
|
+
# use_logit: false,
|
2567
|
+
# seed: 1,
|
2568
|
+
# text_config: {
|
2569
|
+
# language: "af", # required, accepts af, sq, ar, hy, eu, bn, bg, ca, zh, hr, cs, da, nl, en, et, fi, fr, de, el, gu, he, hi, hu, is, id, ga, it, kn, ky, lv, lt, lb, mk, ml, mr, ne, nb, fa, pl, pt, ro, ru, sa, sr, tn, si, sk, sl, es, sv, tl, ta, tt, te, tr, uk, ur, yo, lij, xx
|
2570
|
+
# granularity: "token", # required, accepts token, sentence, paragraph
|
2571
|
+
# },
|
2572
|
+
# },
|
2573
|
+
# },
|
2574
|
+
# },
|
2540
2575
|
# })
|
2541
2576
|
#
|
2542
2577
|
# @example Response structure
|
@@ -9281,6 +9316,7 @@ module Aws::SageMaker
|
|
9281
9316
|
# * {Types::DescribeEndpointOutput#last_deployment_config #last_deployment_config} => Types::DeploymentConfig
|
9282
9317
|
# * {Types::DescribeEndpointOutput#async_inference_config #async_inference_config} => Types::AsyncInferenceConfig
|
9283
9318
|
# * {Types::DescribeEndpointOutput#pending_deployment_summary #pending_deployment_summary} => Types::PendingDeploymentSummary
|
9319
|
+
# * {Types::DescribeEndpointOutput#explainer_config #explainer_config} => Types::ExplainerConfig
|
9284
9320
|
#
|
9285
9321
|
# @example Request syntax with placeholder values
|
9286
9322
|
#
|
@@ -9357,6 +9393,29 @@ module Aws::SageMaker
|
|
9357
9393
|
# resp.pending_deployment_summary.production_variants[0].desired_serverless_config.memory_size_in_mb #=> Integer
|
9358
9394
|
# resp.pending_deployment_summary.production_variants[0].desired_serverless_config.max_concurrency #=> Integer
|
9359
9395
|
# resp.pending_deployment_summary.start_time #=> Time
|
9396
|
+
# resp.explainer_config.clarify_explainer_config.enable_explanations #=> String
|
9397
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.features_attribute #=> String
|
9398
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.content_template #=> String
|
9399
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.max_record_count #=> Integer
|
9400
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.max_payload_in_mb #=> Integer
|
9401
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.probability_index #=> Integer
|
9402
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.label_index #=> Integer
|
9403
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.probability_attribute #=> String
|
9404
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.label_attribute #=> String
|
9405
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.label_headers #=> Array
|
9406
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.label_headers[0] #=> String
|
9407
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.feature_headers #=> Array
|
9408
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.feature_headers[0] #=> String
|
9409
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.feature_types #=> Array
|
9410
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.feature_types[0] #=> String, one of "numerical", "categorical", "text"
|
9411
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.shap_baseline_config.mime_type #=> String
|
9412
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.shap_baseline_config.shap_baseline #=> String
|
9413
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.shap_baseline_config.shap_baseline_uri #=> String
|
9414
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.number_of_samples #=> Integer
|
9415
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.use_logit #=> Boolean
|
9416
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.seed #=> Integer
|
9417
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.text_config.language #=> String, one of "af", "sq", "ar", "hy", "eu", "bn", "bg", "ca", "zh", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "de", "el", "gu", "he", "hi", "hu", "is", "id", "ga", "it", "kn", "ky", "lv", "lt", "lb", "mk", "ml", "mr", "ne", "nb", "fa", "pl", "pt", "ro", "ru", "sa", "sr", "tn", "si", "sk", "sl", "es", "sv", "tl", "ta", "tt", "te", "tr", "uk", "ur", "yo", "lij", "xx"
|
9418
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.text_config.granularity #=> String, one of "token", "sentence", "paragraph"
|
9360
9419
|
#
|
9361
9420
|
#
|
9362
9421
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -9388,6 +9447,7 @@ module Aws::SageMaker
|
|
9388
9447
|
# * {Types::DescribeEndpointConfigOutput#kms_key_id #kms_key_id} => String
|
9389
9448
|
# * {Types::DescribeEndpointConfigOutput#creation_time #creation_time} => Time
|
9390
9449
|
# * {Types::DescribeEndpointConfigOutput#async_inference_config #async_inference_config} => Types::AsyncInferenceConfig
|
9450
|
+
# * {Types::DescribeEndpointConfigOutput#explainer_config #explainer_config} => Types::ExplainerConfig
|
9391
9451
|
#
|
9392
9452
|
# @example Request syntax with placeholder values
|
9393
9453
|
#
|
@@ -9430,6 +9490,29 @@ module Aws::SageMaker
|
|
9430
9490
|
# resp.async_inference_config.output_config.s3_output_path #=> String
|
9431
9491
|
# resp.async_inference_config.output_config.notification_config.success_topic #=> String
|
9432
9492
|
# resp.async_inference_config.output_config.notification_config.error_topic #=> String
|
9493
|
+
# resp.explainer_config.clarify_explainer_config.enable_explanations #=> String
|
9494
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.features_attribute #=> String
|
9495
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.content_template #=> String
|
9496
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.max_record_count #=> Integer
|
9497
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.max_payload_in_mb #=> Integer
|
9498
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.probability_index #=> Integer
|
9499
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.label_index #=> Integer
|
9500
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.probability_attribute #=> String
|
9501
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.label_attribute #=> String
|
9502
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.label_headers #=> Array
|
9503
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.label_headers[0] #=> String
|
9504
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.feature_headers #=> Array
|
9505
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.feature_headers[0] #=> String
|
9506
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.feature_types #=> Array
|
9507
|
+
# resp.explainer_config.clarify_explainer_config.inference_config.feature_types[0] #=> String, one of "numerical", "categorical", "text"
|
9508
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.shap_baseline_config.mime_type #=> String
|
9509
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.shap_baseline_config.shap_baseline #=> String
|
9510
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.shap_baseline_config.shap_baseline_uri #=> String
|
9511
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.number_of_samples #=> Integer
|
9512
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.use_logit #=> Boolean
|
9513
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.seed #=> Integer
|
9514
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.text_config.language #=> String, one of "af", "sq", "ar", "hy", "eu", "bn", "bg", "ca", "zh", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "de", "el", "gu", "he", "hi", "hu", "is", "id", "ga", "it", "kn", "ky", "lv", "lt", "lb", "mk", "ml", "mr", "ne", "nb", "fa", "pl", "pt", "ro", "ru", "sa", "sr", "tn", "si", "sk", "sl", "es", "sv", "tl", "ta", "tt", "te", "tr", "uk", "ur", "yo", "lij", "xx"
|
9515
|
+
# resp.explainer_config.clarify_explainer_config.shap_config.text_config.granularity #=> String, one of "token", "sentence", "paragraph"
|
9433
9516
|
#
|
9434
9517
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig AWS API Documentation
|
9435
9518
|
#
|
@@ -20663,7 +20746,7 @@ module Aws::SageMaker
|
|
20663
20746
|
params: params,
|
20664
20747
|
config: config)
|
20665
20748
|
context[:gem_name] = 'aws-sdk-sagemaker'
|
20666
|
-
context[:gem_version] = '1.
|
20749
|
+
context[:gem_version] = '1.143.0'
|
20667
20750
|
Seahorse::Client::Request.new(handlers, context)
|
20668
20751
|
end
|
20669
20752
|
|
@@ -186,6 +186,32 @@ module Aws::SageMaker
|
|
186
186
|
Cidr = Shapes::StringShape.new(name: 'Cidr')
|
187
187
|
Cidrs = Shapes::ListShape.new(name: 'Cidrs')
|
188
188
|
ClarifyCheckStepMetadata = Shapes::StructureShape.new(name: 'ClarifyCheckStepMetadata')
|
189
|
+
ClarifyContentTemplate = Shapes::StringShape.new(name: 'ClarifyContentTemplate')
|
190
|
+
ClarifyEnableExplanations = Shapes::StringShape.new(name: 'ClarifyEnableExplanations')
|
191
|
+
ClarifyExplainerConfig = Shapes::StructureShape.new(name: 'ClarifyExplainerConfig')
|
192
|
+
ClarifyFeatureHeaders = Shapes::ListShape.new(name: 'ClarifyFeatureHeaders')
|
193
|
+
ClarifyFeatureType = Shapes::StringShape.new(name: 'ClarifyFeatureType')
|
194
|
+
ClarifyFeatureTypes = Shapes::ListShape.new(name: 'ClarifyFeatureTypes')
|
195
|
+
ClarifyFeaturesAttribute = Shapes::StringShape.new(name: 'ClarifyFeaturesAttribute')
|
196
|
+
ClarifyHeader = Shapes::StringShape.new(name: 'ClarifyHeader')
|
197
|
+
ClarifyInferenceConfig = Shapes::StructureShape.new(name: 'ClarifyInferenceConfig')
|
198
|
+
ClarifyLabelAttribute = Shapes::StringShape.new(name: 'ClarifyLabelAttribute')
|
199
|
+
ClarifyLabelHeaders = Shapes::ListShape.new(name: 'ClarifyLabelHeaders')
|
200
|
+
ClarifyLabelIndex = Shapes::IntegerShape.new(name: 'ClarifyLabelIndex')
|
201
|
+
ClarifyMaxPayloadInMB = Shapes::IntegerShape.new(name: 'ClarifyMaxPayloadInMB')
|
202
|
+
ClarifyMaxRecordCount = Shapes::IntegerShape.new(name: 'ClarifyMaxRecordCount')
|
203
|
+
ClarifyMimeType = Shapes::StringShape.new(name: 'ClarifyMimeType')
|
204
|
+
ClarifyProbabilityAttribute = Shapes::StringShape.new(name: 'ClarifyProbabilityAttribute')
|
205
|
+
ClarifyProbabilityIndex = Shapes::IntegerShape.new(name: 'ClarifyProbabilityIndex')
|
206
|
+
ClarifyShapBaseline = Shapes::StringShape.new(name: 'ClarifyShapBaseline')
|
207
|
+
ClarifyShapBaselineConfig = Shapes::StructureShape.new(name: 'ClarifyShapBaselineConfig')
|
208
|
+
ClarifyShapConfig = Shapes::StructureShape.new(name: 'ClarifyShapConfig')
|
209
|
+
ClarifyShapNumberOfSamples = Shapes::IntegerShape.new(name: 'ClarifyShapNumberOfSamples')
|
210
|
+
ClarifyShapSeed = Shapes::IntegerShape.new(name: 'ClarifyShapSeed')
|
211
|
+
ClarifyShapUseLogit = Shapes::BooleanShape.new(name: 'ClarifyShapUseLogit')
|
212
|
+
ClarifyTextConfig = Shapes::StructureShape.new(name: 'ClarifyTextConfig')
|
213
|
+
ClarifyTextGranularity = Shapes::StringShape.new(name: 'ClarifyTextGranularity')
|
214
|
+
ClarifyTextLanguage = Shapes::StringShape.new(name: 'ClarifyTextLanguage')
|
189
215
|
ClientId = Shapes::StringShape.new(name: 'ClientId')
|
190
216
|
ClientSecret = Shapes::StringShape.new(name: 'ClientSecret')
|
191
217
|
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
@@ -651,6 +677,7 @@ module Aws::SageMaker
|
|
651
677
|
ExpiresInSeconds = Shapes::IntegerShape.new(name: 'ExpiresInSeconds')
|
652
678
|
Explainability = Shapes::StructureShape.new(name: 'Explainability')
|
653
679
|
ExplainabilityLocation = Shapes::StringShape.new(name: 'ExplainabilityLocation')
|
680
|
+
ExplainerConfig = Shapes::StructureShape.new(name: 'ExplainerConfig')
|
654
681
|
FailStepMetadata = Shapes::StructureShape.new(name: 'FailStepMetadata')
|
655
682
|
FailureHandlingPolicy = Shapes::StringShape.new(name: 'FailureHandlingPolicy')
|
656
683
|
FailureReason = Shapes::StringShape.new(name: 'FailureReason')
|
@@ -2125,6 +2152,46 @@ module Aws::SageMaker
|
|
2125
2152
|
ClarifyCheckStepMetadata.add_member(:register_new_baseline, Shapes::ShapeRef.new(shape: Boolean, location_name: "RegisterNewBaseline"))
|
2126
2153
|
ClarifyCheckStepMetadata.struct_class = Types::ClarifyCheckStepMetadata
|
2127
2154
|
|
2155
|
+
ClarifyExplainerConfig.add_member(:enable_explanations, Shapes::ShapeRef.new(shape: ClarifyEnableExplanations, location_name: "EnableExplanations"))
|
2156
|
+
ClarifyExplainerConfig.add_member(:inference_config, Shapes::ShapeRef.new(shape: ClarifyInferenceConfig, location_name: "InferenceConfig"))
|
2157
|
+
ClarifyExplainerConfig.add_member(:shap_config, Shapes::ShapeRef.new(shape: ClarifyShapConfig, required: true, location_name: "ShapConfig"))
|
2158
|
+
ClarifyExplainerConfig.struct_class = Types::ClarifyExplainerConfig
|
2159
|
+
|
2160
|
+
ClarifyFeatureHeaders.member = Shapes::ShapeRef.new(shape: ClarifyHeader)
|
2161
|
+
|
2162
|
+
ClarifyFeatureTypes.member = Shapes::ShapeRef.new(shape: ClarifyFeatureType)
|
2163
|
+
|
2164
|
+
ClarifyInferenceConfig.add_member(:features_attribute, Shapes::ShapeRef.new(shape: ClarifyFeaturesAttribute, location_name: "FeaturesAttribute"))
|
2165
|
+
ClarifyInferenceConfig.add_member(:content_template, Shapes::ShapeRef.new(shape: ClarifyContentTemplate, location_name: "ContentTemplate"))
|
2166
|
+
ClarifyInferenceConfig.add_member(:max_record_count, Shapes::ShapeRef.new(shape: ClarifyMaxRecordCount, location_name: "MaxRecordCount"))
|
2167
|
+
ClarifyInferenceConfig.add_member(:max_payload_in_mb, Shapes::ShapeRef.new(shape: ClarifyMaxPayloadInMB, location_name: "MaxPayloadInMB"))
|
2168
|
+
ClarifyInferenceConfig.add_member(:probability_index, Shapes::ShapeRef.new(shape: ClarifyProbabilityIndex, location_name: "ProbabilityIndex"))
|
2169
|
+
ClarifyInferenceConfig.add_member(:label_index, Shapes::ShapeRef.new(shape: ClarifyLabelIndex, location_name: "LabelIndex"))
|
2170
|
+
ClarifyInferenceConfig.add_member(:probability_attribute, Shapes::ShapeRef.new(shape: ClarifyProbabilityAttribute, location_name: "ProbabilityAttribute"))
|
2171
|
+
ClarifyInferenceConfig.add_member(:label_attribute, Shapes::ShapeRef.new(shape: ClarifyLabelAttribute, location_name: "LabelAttribute"))
|
2172
|
+
ClarifyInferenceConfig.add_member(:label_headers, Shapes::ShapeRef.new(shape: ClarifyLabelHeaders, location_name: "LabelHeaders"))
|
2173
|
+
ClarifyInferenceConfig.add_member(:feature_headers, Shapes::ShapeRef.new(shape: ClarifyFeatureHeaders, location_name: "FeatureHeaders"))
|
2174
|
+
ClarifyInferenceConfig.add_member(:feature_types, Shapes::ShapeRef.new(shape: ClarifyFeatureTypes, location_name: "FeatureTypes"))
|
2175
|
+
ClarifyInferenceConfig.struct_class = Types::ClarifyInferenceConfig
|
2176
|
+
|
2177
|
+
ClarifyLabelHeaders.member = Shapes::ShapeRef.new(shape: ClarifyHeader)
|
2178
|
+
|
2179
|
+
ClarifyShapBaselineConfig.add_member(:mime_type, Shapes::ShapeRef.new(shape: ClarifyMimeType, location_name: "MimeType"))
|
2180
|
+
ClarifyShapBaselineConfig.add_member(:shap_baseline, Shapes::ShapeRef.new(shape: ClarifyShapBaseline, location_name: "ShapBaseline"))
|
2181
|
+
ClarifyShapBaselineConfig.add_member(:shap_baseline_uri, Shapes::ShapeRef.new(shape: Url, location_name: "ShapBaselineUri"))
|
2182
|
+
ClarifyShapBaselineConfig.struct_class = Types::ClarifyShapBaselineConfig
|
2183
|
+
|
2184
|
+
ClarifyShapConfig.add_member(:shap_baseline_config, Shapes::ShapeRef.new(shape: ClarifyShapBaselineConfig, required: true, location_name: "ShapBaselineConfig"))
|
2185
|
+
ClarifyShapConfig.add_member(:number_of_samples, Shapes::ShapeRef.new(shape: ClarifyShapNumberOfSamples, location_name: "NumberOfSamples"))
|
2186
|
+
ClarifyShapConfig.add_member(:use_logit, Shapes::ShapeRef.new(shape: ClarifyShapUseLogit, location_name: "UseLogit"))
|
2187
|
+
ClarifyShapConfig.add_member(:seed, Shapes::ShapeRef.new(shape: ClarifyShapSeed, location_name: "Seed"))
|
2188
|
+
ClarifyShapConfig.add_member(:text_config, Shapes::ShapeRef.new(shape: ClarifyTextConfig, location_name: "TextConfig"))
|
2189
|
+
ClarifyShapConfig.struct_class = Types::ClarifyShapConfig
|
2190
|
+
|
2191
|
+
ClarifyTextConfig.add_member(:language, Shapes::ShapeRef.new(shape: ClarifyTextLanguage, required: true, location_name: "Language"))
|
2192
|
+
ClarifyTextConfig.add_member(:granularity, Shapes::ShapeRef.new(shape: ClarifyTextGranularity, required: true, location_name: "Granularity"))
|
2193
|
+
ClarifyTextConfig.struct_class = Types::ClarifyTextConfig
|
2194
|
+
|
2128
2195
|
CodeRepositorySummary.add_member(:code_repository_name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "CodeRepositoryName"))
|
2129
2196
|
CodeRepositorySummary.add_member(:code_repository_arn, Shapes::ShapeRef.new(shape: CodeRepositoryArn, required: true, location_name: "CodeRepositoryArn"))
|
2130
2197
|
CodeRepositorySummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: CreationTime, required: true, location_name: "CreationTime"))
|
@@ -2395,6 +2462,7 @@ module Aws::SageMaker
|
|
2395
2462
|
CreateEndpointConfigInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
2396
2463
|
CreateEndpointConfigInput.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
|
2397
2464
|
CreateEndpointConfigInput.add_member(:async_inference_config, Shapes::ShapeRef.new(shape: AsyncInferenceConfig, location_name: "AsyncInferenceConfig"))
|
2465
|
+
CreateEndpointConfigInput.add_member(:explainer_config, Shapes::ShapeRef.new(shape: ExplainerConfig, location_name: "ExplainerConfig"))
|
2398
2466
|
CreateEndpointConfigInput.struct_class = Types::CreateEndpointConfigInput
|
2399
2467
|
|
2400
2468
|
CreateEndpointConfigOutput.add_member(:endpoint_config_arn, Shapes::ShapeRef.new(shape: EndpointConfigArn, required: true, location_name: "EndpointConfigArn"))
|
@@ -3369,6 +3437,7 @@ module Aws::SageMaker
|
|
3369
3437
|
DescribeEndpointConfigOutput.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
|
3370
3438
|
DescribeEndpointConfigOutput.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTime"))
|
3371
3439
|
DescribeEndpointConfigOutput.add_member(:async_inference_config, Shapes::ShapeRef.new(shape: AsyncInferenceConfig, location_name: "AsyncInferenceConfig"))
|
3440
|
+
DescribeEndpointConfigOutput.add_member(:explainer_config, Shapes::ShapeRef.new(shape: ExplainerConfig, location_name: "ExplainerConfig"))
|
3372
3441
|
DescribeEndpointConfigOutput.struct_class = Types::DescribeEndpointConfigOutput
|
3373
3442
|
|
3374
3443
|
DescribeEndpointInput.add_member(:endpoint_name, Shapes::ShapeRef.new(shape: EndpointName, required: true, location_name: "EndpointName"))
|
@@ -3386,6 +3455,7 @@ module Aws::SageMaker
|
|
3386
3455
|
DescribeEndpointOutput.add_member(:last_deployment_config, Shapes::ShapeRef.new(shape: DeploymentConfig, location_name: "LastDeploymentConfig"))
|
3387
3456
|
DescribeEndpointOutput.add_member(:async_inference_config, Shapes::ShapeRef.new(shape: AsyncInferenceConfig, location_name: "AsyncInferenceConfig"))
|
3388
3457
|
DescribeEndpointOutput.add_member(:pending_deployment_summary, Shapes::ShapeRef.new(shape: PendingDeploymentSummary, location_name: "PendingDeploymentSummary"))
|
3458
|
+
DescribeEndpointOutput.add_member(:explainer_config, Shapes::ShapeRef.new(shape: ExplainerConfig, location_name: "ExplainerConfig"))
|
3389
3459
|
DescribeEndpointOutput.struct_class = Types::DescribeEndpointOutput
|
3390
3460
|
|
3391
3461
|
DescribeExperimentRequest.add_member(:experiment_name, Shapes::ShapeRef.new(shape: ExperimentEntityName, required: true, location_name: "ExperimentName"))
|
@@ -4275,6 +4345,9 @@ module Aws::SageMaker
|
|
4275
4345
|
Explainability.add_member(:report, Shapes::ShapeRef.new(shape: MetricsSource, location_name: "Report"))
|
4276
4346
|
Explainability.struct_class = Types::Explainability
|
4277
4347
|
|
4348
|
+
ExplainerConfig.add_member(:clarify_explainer_config, Shapes::ShapeRef.new(shape: ClarifyExplainerConfig, location_name: "ClarifyExplainerConfig"))
|
4349
|
+
ExplainerConfig.struct_class = Types::ExplainerConfig
|
4350
|
+
|
4278
4351
|
FailStepMetadata.add_member(:error_message, Shapes::ShapeRef.new(shape: String3072, location_name: "ErrorMessage"))
|
4279
4352
|
FailStepMetadata.struct_class = Types::FailStepMetadata
|
4280
4353
|
|
@@ -3463,6 +3463,424 @@ module Aws::SageMaker
|
|
3463
3463
|
include Aws::Structure
|
3464
3464
|
end
|
3465
3465
|
|
3466
|
+
# The configuration parameters for the SageMaker Clarify explainer.
|
3467
|
+
#
|
3468
|
+
# @note When making an API call, you may pass ClarifyExplainerConfig
|
3469
|
+
# data as a hash:
|
3470
|
+
#
|
3471
|
+
# {
|
3472
|
+
# enable_explanations: "ClarifyEnableExplanations",
|
3473
|
+
# inference_config: {
|
3474
|
+
# features_attribute: "ClarifyFeaturesAttribute",
|
3475
|
+
# content_template: "ClarifyContentTemplate",
|
3476
|
+
# max_record_count: 1,
|
3477
|
+
# max_payload_in_mb: 1,
|
3478
|
+
# probability_index: 1,
|
3479
|
+
# label_index: 1,
|
3480
|
+
# probability_attribute: "ClarifyProbabilityAttribute",
|
3481
|
+
# label_attribute: "ClarifyLabelAttribute",
|
3482
|
+
# label_headers: ["ClarifyHeader"],
|
3483
|
+
# feature_headers: ["ClarifyHeader"],
|
3484
|
+
# feature_types: ["numerical"], # accepts numerical, categorical, text
|
3485
|
+
# },
|
3486
|
+
# shap_config: { # required
|
3487
|
+
# shap_baseline_config: { # required
|
3488
|
+
# mime_type: "ClarifyMimeType",
|
3489
|
+
# shap_baseline: "ClarifyShapBaseline",
|
3490
|
+
# shap_baseline_uri: "Url",
|
3491
|
+
# },
|
3492
|
+
# number_of_samples: 1,
|
3493
|
+
# use_logit: false,
|
3494
|
+
# seed: 1,
|
3495
|
+
# text_config: {
|
3496
|
+
# language: "af", # required, accepts af, sq, ar, hy, eu, bn, bg, ca, zh, hr, cs, da, nl, en, et, fi, fr, de, el, gu, he, hi, hu, is, id, ga, it, kn, ky, lv, lt, lb, mk, ml, mr, ne, nb, fa, pl, pt, ro, ru, sa, sr, tn, si, sk, sl, es, sv, tl, ta, tt, te, tr, uk, ur, yo, lij, xx
|
3497
|
+
# granularity: "token", # required, accepts token, sentence, paragraph
|
3498
|
+
# },
|
3499
|
+
# },
|
3500
|
+
# }
|
3501
|
+
#
|
3502
|
+
# @!attribute [rw] enable_explanations
|
3503
|
+
# A JMESPath boolean expression used to filter which records to
|
3504
|
+
# explain. Explanations are activated by default. See [
|
3505
|
+
# `EnableExplanations` ][1]for additional information.
|
3506
|
+
#
|
3507
|
+
#
|
3508
|
+
#
|
3509
|
+
# [1]: https://docs.aws.amazon.com/sagemaker-dg/src/AWSIronmanApiDoc/build/server-root/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-enable
|
3510
|
+
# @return [String]
|
3511
|
+
#
|
3512
|
+
# @!attribute [rw] inference_config
|
3513
|
+
# The inference configuration parameter for the model container.
|
3514
|
+
# @return [Types::ClarifyInferenceConfig]
|
3515
|
+
#
|
3516
|
+
# @!attribute [rw] shap_config
|
3517
|
+
# The configuration for SHAP analysis.
|
3518
|
+
# @return [Types::ClarifyShapConfig]
|
3519
|
+
#
|
3520
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ClarifyExplainerConfig AWS API Documentation
|
3521
|
+
#
|
3522
|
+
class ClarifyExplainerConfig < Struct.new(
|
3523
|
+
:enable_explanations,
|
3524
|
+
:inference_config,
|
3525
|
+
:shap_config)
|
3526
|
+
SENSITIVE = []
|
3527
|
+
include Aws::Structure
|
3528
|
+
end
|
3529
|
+
|
3530
|
+
# The inference configuration parameter for the model container.
|
3531
|
+
#
|
3532
|
+
# @note When making an API call, you may pass ClarifyInferenceConfig
|
3533
|
+
# data as a hash:
|
3534
|
+
#
|
3535
|
+
# {
|
3536
|
+
# features_attribute: "ClarifyFeaturesAttribute",
|
3537
|
+
# content_template: "ClarifyContentTemplate",
|
3538
|
+
# max_record_count: 1,
|
3539
|
+
# max_payload_in_mb: 1,
|
3540
|
+
# probability_index: 1,
|
3541
|
+
# label_index: 1,
|
3542
|
+
# probability_attribute: "ClarifyProbabilityAttribute",
|
3543
|
+
# label_attribute: "ClarifyLabelAttribute",
|
3544
|
+
# label_headers: ["ClarifyHeader"],
|
3545
|
+
# feature_headers: ["ClarifyHeader"],
|
3546
|
+
# feature_types: ["numerical"], # accepts numerical, categorical, text
|
3547
|
+
# }
|
3548
|
+
#
|
3549
|
+
# @!attribute [rw] features_attribute
|
3550
|
+
# Provides the JMESPath expression to extract the features from a
|
3551
|
+
# model container input in JSON Lines format. For example, if
|
3552
|
+
# `FeaturesAttribute` is the JMESPath expression `'myfeatures'`, it
|
3553
|
+
# extracts a list of features `[1,2,3]` from request data
|
3554
|
+
# `'\{"myfeatures":[1,2,3\}'`.
|
3555
|
+
# @return [String]
|
3556
|
+
#
|
3557
|
+
# @!attribute [rw] content_template
|
3558
|
+
# A template string used to format a JSON record into an acceptable
|
3559
|
+
# model container input. For example, a `ContentTemplate` string
|
3560
|
+
# `'\{"myfeatures":$features\}'` will format a list of features
|
3561
|
+
# `[1,2,3]` into the record string `'\{"myfeatures":[1,2,3]\}'`.
|
3562
|
+
# Required only when the model container input is in JSON Lines
|
3563
|
+
# format.
|
3564
|
+
# @return [String]
|
3565
|
+
#
|
3566
|
+
# @!attribute [rw] max_record_count
|
3567
|
+
# The maximum number of records in a request that the model container
|
3568
|
+
# can process when querying the model container for the predictions of
|
3569
|
+
# a [synthetic dataset][1]. A record is a unit of input data that
|
3570
|
+
# inference can be made on, for example, a single line in CSV data. If
|
3571
|
+
# `MaxRecordCount` is `1`, the model container expects one record per
|
3572
|
+
# request. A value of 2 or greater means that the model expects batch
|
3573
|
+
# requests, which can reduce overhead and speed up the inferencing
|
3574
|
+
# process. If this parameter is not provided, the explainer will tune
|
3575
|
+
# the record count per request according to the model container's
|
3576
|
+
# capacity at runtime.
|
3577
|
+
#
|
3578
|
+
#
|
3579
|
+
#
|
3580
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-synthetic
|
3581
|
+
# @return [Integer]
|
3582
|
+
#
|
3583
|
+
# @!attribute [rw] max_payload_in_mb
|
3584
|
+
# The maximum payload size (MB) allowed of a request from the
|
3585
|
+
# explainer to the model container. Defaults to `6` MB.
|
3586
|
+
# @return [Integer]
|
3587
|
+
#
|
3588
|
+
# @!attribute [rw] probability_index
|
3589
|
+
# A zero-based index used to extract a probability value (score) or
|
3590
|
+
# list from model container output in CSV format. If this value is not
|
3591
|
+
# provided, the entire model container output will be treated as a
|
3592
|
+
# probability value (score) or list.
|
3593
|
+
#
|
3594
|
+
# **Example for a single class model:** If the model container output
|
3595
|
+
# consists of a string-formatted prediction label followed by its
|
3596
|
+
# probability: `'1,0.6'`, set `ProbabilityIndex` to `1` to select the
|
3597
|
+
# probability value `0.6`.
|
3598
|
+
#
|
3599
|
+
# **Example for a multiclass model:** If the model container output
|
3600
|
+
# consists of a string-formatted prediction label followed by its
|
3601
|
+
# probability: `'"['cat','dog','fish']","[0.1,0.6,0.3]"'`, set
|
3602
|
+
# `ProbabilityIndex` to `1` to select the probability values
|
3603
|
+
# `[0.1,0.6,0.3]`.
|
3604
|
+
# @return [Integer]
|
3605
|
+
#
|
3606
|
+
# @!attribute [rw] label_index
|
3607
|
+
# A zero-based index used to extract a label header or list of label
|
3608
|
+
# headers from model container output in CSV format.
|
3609
|
+
#
|
3610
|
+
# **Example for a multiclass model:** If the model container output
|
3611
|
+
# consists of label headers followed by probabilities:
|
3612
|
+
# `'"['cat','dog','fish']","[0.1,0.6,0.3]"'`, set `LabelIndex`
|
3613
|
+
# to `0` to select the label headers `['cat','dog','fish']`.
|
3614
|
+
# @return [Integer]
|
3615
|
+
#
|
3616
|
+
# @!attribute [rw] probability_attribute
|
3617
|
+
# A JMESPath expression used to extract the probability (or score)
|
3618
|
+
# from the model container output if the model container is in JSON
|
3619
|
+
# Lines format.
|
3620
|
+
#
|
3621
|
+
# **Example**\: If the model container output of a single request is
|
3622
|
+
# `'\{"predicted_label":1,"probability":0.6\}'`, then set
|
3623
|
+
# `ProbabilityAttribute` to `'probability'`.
|
3624
|
+
# @return [String]
|
3625
|
+
#
|
3626
|
+
# @!attribute [rw] label_attribute
|
3627
|
+
# A JMESPath expression used to locate the list of label headers in
|
3628
|
+
# the model container output.
|
3629
|
+
#
|
3630
|
+
# **Example**\: If the model container output of a batch request is
|
3631
|
+
# `'\{"labels":["cat","dog","fish"],"probability":[0.6,0.3,0.1]\}'`,
|
3632
|
+
# then set `LabelAttribute` to `'labels'` to extract the list of label
|
3633
|
+
# headers `["cat","dog","fish"]`
|
3634
|
+
# @return [String]
|
3635
|
+
#
|
3636
|
+
# @!attribute [rw] label_headers
|
3637
|
+
# For multiclass classification problems, the label headers are the
|
3638
|
+
# names of the classes. Otherwise, the label header is the name of the
|
3639
|
+
# predicted label. These are used to help readability for the output
|
3640
|
+
# of the `InvokeEndpoint` API. See the [response][1] section under
|
3641
|
+
# **Invoke the endpoint** in the Developer Guide for more information.
|
3642
|
+
# If there are no label headers in the model container output, provide
|
3643
|
+
# them manually using this parameter.
|
3644
|
+
#
|
3645
|
+
#
|
3646
|
+
#
|
3647
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-invoke-endpoint.html#clarify-online-explainability-response
|
3648
|
+
# @return [Array<String>]
|
3649
|
+
#
|
3650
|
+
# @!attribute [rw] feature_headers
|
3651
|
+
# The names of the features. If provided, these are included in the
|
3652
|
+
# endpoint response payload to help readability of the
|
3653
|
+
# `InvokeEndpoint` output. See the [Response][1] section under
|
3654
|
+
# **Invoke the endpoint** in the Developer Guide for more information.
|
3655
|
+
#
|
3656
|
+
#
|
3657
|
+
#
|
3658
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-invoke-endpoint.html#clarify-online-explainability-response
|
3659
|
+
# @return [Array<String>]
|
3660
|
+
#
|
3661
|
+
# @!attribute [rw] feature_types
|
3662
|
+
# A list of data types of the features (optional). Applicable only to
|
3663
|
+
# NLP explainability. If provided, `FeatureTypes` must have at least
|
3664
|
+
# one `'text'` string (for example, `['text']`). If `FeatureTypes` is
|
3665
|
+
# not provided, the explainer infers the feature types based on the
|
3666
|
+
# baseline data. The feature types are included in the endpoint
|
3667
|
+
# response payload. For additional information see the [response][1]
|
3668
|
+
# section under **Invoke the endpoint** in the Developer Guide for
|
3669
|
+
# more information.
|
3670
|
+
#
|
3671
|
+
#
|
3672
|
+
#
|
3673
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-invoke-endpoint.html#clarify-online-explainability-response
|
3674
|
+
# @return [Array<String>]
|
3675
|
+
#
|
3676
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ClarifyInferenceConfig AWS API Documentation
|
3677
|
+
#
|
3678
|
+
class ClarifyInferenceConfig < Struct.new(
|
3679
|
+
:features_attribute,
|
3680
|
+
:content_template,
|
3681
|
+
:max_record_count,
|
3682
|
+
:max_payload_in_mb,
|
3683
|
+
:probability_index,
|
3684
|
+
:label_index,
|
3685
|
+
:probability_attribute,
|
3686
|
+
:label_attribute,
|
3687
|
+
:label_headers,
|
3688
|
+
:feature_headers,
|
3689
|
+
:feature_types)
|
3690
|
+
SENSITIVE = []
|
3691
|
+
include Aws::Structure
|
3692
|
+
end
|
3693
|
+
|
3694
|
+
# The configuration for the [SHAP baseline][1] (also called the
|
3695
|
+
# background or reference dataset) of the Kernal SHAP algorithm.
|
3696
|
+
#
|
3697
|
+
# <note markdown="1"> * The number of records in the baseline data determines the size of
|
3698
|
+
# the synthetic dataset, which has an impact on latency of
|
3699
|
+
# explainability requests. For more information, see the **Synthetic
|
3700
|
+
# data** of [Configure and create an endpoint][2].
|
3701
|
+
#
|
3702
|
+
# * `ShapBaseline` and `ShapBaselineUri` are mutually exclusive
|
3703
|
+
# parameters. One or the either is required to configure a SHAP
|
3704
|
+
# baseline.
|
3705
|
+
#
|
3706
|
+
# </note>
|
3707
|
+
#
|
3708
|
+
#
|
3709
|
+
#
|
3710
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-feature-attribute-shap-baselines.html
|
3711
|
+
# [2]: https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html
|
3712
|
+
#
|
3713
|
+
# @note When making an API call, you may pass ClarifyShapBaselineConfig
|
3714
|
+
# data as a hash:
|
3715
|
+
#
|
3716
|
+
# {
|
3717
|
+
# mime_type: "ClarifyMimeType",
|
3718
|
+
# shap_baseline: "ClarifyShapBaseline",
|
3719
|
+
# shap_baseline_uri: "Url",
|
3720
|
+
# }
|
3721
|
+
#
|
3722
|
+
# @!attribute [rw] mime_type
|
3723
|
+
# The MIME type of the baseline data. Choose from `'text/csv'` or
|
3724
|
+
# `'application/jsonlines'`. Defaults to `'text/csv'`.
|
3725
|
+
# @return [String]
|
3726
|
+
#
|
3727
|
+
# @!attribute [rw] shap_baseline
|
3728
|
+
# The inline SHAP baseline data in string format. `ShapBaseline` can
|
3729
|
+
# have one or multiple records to be used as the baseline dataset. The
|
3730
|
+
# format of the SHAP baseline file should be the same format as the
|
3731
|
+
# training dataset. For example, if the training dataset is in CSV
|
3732
|
+
# format and each record contains four features, and all features are
|
3733
|
+
# numerical, then the format of the baseline data should also share
|
3734
|
+
# these characteristics. For natural language processing (NLP) of text
|
3735
|
+
# columns, the baseline value should be the value used to replace the
|
3736
|
+
# unit of text specified by the `Granularity` of the `TextConfig`
|
3737
|
+
# parameter. The size limit for `ShapBasline` is 4 KB. Use the
|
3738
|
+
# `ShapBaselineUri` parameter if you want to provide more than 4 KB of
|
3739
|
+
# baseline data.
|
3740
|
+
# @return [String]
|
3741
|
+
#
|
3742
|
+
# @!attribute [rw] shap_baseline_uri
|
3743
|
+
# The uniform resource identifier (URI) of the S3 bucket where the
|
3744
|
+
# SHAP baseline file is stored. The format of the SHAP baseline file
|
3745
|
+
# should be the same format as the format of the training dataset. For
|
3746
|
+
# example, if the training dataset is in CSV format, and each record
|
3747
|
+
# in the training dataset has four features, and all features are
|
3748
|
+
# numerical, then the baseline file should also have this same format.
|
3749
|
+
# Each record should contain only the features. If you are using a
|
3750
|
+
# virtual private cloud (VPC), the `ShapBaselineUri` should be
|
3751
|
+
# accessible to the VPC. For more information about setting up
|
3752
|
+
# endpoints with Amazon Virtual Private Cloud, see [Give SageMaker
|
3753
|
+
# access to Resources in your Amazon Virtual Private Cloud][1].
|
3754
|
+
#
|
3755
|
+
#
|
3756
|
+
#
|
3757
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html
|
3758
|
+
# @return [String]
|
3759
|
+
#
|
3760
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ClarifyShapBaselineConfig AWS API Documentation
|
3761
|
+
#
|
3762
|
+
class ClarifyShapBaselineConfig < Struct.new(
|
3763
|
+
:mime_type,
|
3764
|
+
:shap_baseline,
|
3765
|
+
:shap_baseline_uri)
|
3766
|
+
SENSITIVE = []
|
3767
|
+
include Aws::Structure
|
3768
|
+
end
|
3769
|
+
|
3770
|
+
# The configuration for SHAP analysis using SageMaker Clarify Explainer.
|
3771
|
+
#
|
3772
|
+
# @note When making an API call, you may pass ClarifyShapConfig
|
3773
|
+
# data as a hash:
|
3774
|
+
#
|
3775
|
+
# {
|
3776
|
+
# shap_baseline_config: { # required
|
3777
|
+
# mime_type: "ClarifyMimeType",
|
3778
|
+
# shap_baseline: "ClarifyShapBaseline",
|
3779
|
+
# shap_baseline_uri: "Url",
|
3780
|
+
# },
|
3781
|
+
# number_of_samples: 1,
|
3782
|
+
# use_logit: false,
|
3783
|
+
# seed: 1,
|
3784
|
+
# text_config: {
|
3785
|
+
# language: "af", # required, accepts af, sq, ar, hy, eu, bn, bg, ca, zh, hr, cs, da, nl, en, et, fi, fr, de, el, gu, he, hi, hu, is, id, ga, it, kn, ky, lv, lt, lb, mk, ml, mr, ne, nb, fa, pl, pt, ro, ru, sa, sr, tn, si, sk, sl, es, sv, tl, ta, tt, te, tr, uk, ur, yo, lij, xx
|
3786
|
+
# granularity: "token", # required, accepts token, sentence, paragraph
|
3787
|
+
# },
|
3788
|
+
# }
|
3789
|
+
#
|
3790
|
+
# @!attribute [rw] shap_baseline_config
|
3791
|
+
# The configuration for the SHAP baseline of the Kernal SHAP
|
3792
|
+
# algorithm.
|
3793
|
+
# @return [Types::ClarifyShapBaselineConfig]
|
3794
|
+
#
|
3795
|
+
# @!attribute [rw] number_of_samples
|
3796
|
+
# The number of samples to be used for analysis by the Kernal SHAP
|
3797
|
+
# algorithm.
|
3798
|
+
#
|
3799
|
+
# <note markdown="1"> The number of samples determines the size of the synthetic dataset,
|
3800
|
+
# which has an impact on latency of explainability requests. For more
|
3801
|
+
# information, see the **Synthetic data** of [Configure and create an
|
3802
|
+
# endpoint][1].
|
3803
|
+
#
|
3804
|
+
# </note>
|
3805
|
+
#
|
3806
|
+
#
|
3807
|
+
#
|
3808
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html
|
3809
|
+
# @return [Integer]
|
3810
|
+
#
|
3811
|
+
# @!attribute [rw] use_logit
|
3812
|
+
# A Boolean toggle to indicate if you want to use the logit function
|
3813
|
+
# (true) or log-odds units (false) for model predictions. Defaults to
|
3814
|
+
# false.
|
3815
|
+
# @return [Boolean]
|
3816
|
+
#
|
3817
|
+
# @!attribute [rw] seed
|
3818
|
+
# The starting value used to initialize the random number generator in
|
3819
|
+
# the explainer. Provide a value for this parameter to obtain a
|
3820
|
+
# deterministic SHAP result.
|
3821
|
+
# @return [Integer]
|
3822
|
+
#
|
3823
|
+
# @!attribute [rw] text_config
|
3824
|
+
# A parameter that indicates if text features are treated as text and
|
3825
|
+
# explanations are provided for individual units of text. Required for
|
3826
|
+
# natural language processing (NLP) explainability only.
|
3827
|
+
# @return [Types::ClarifyTextConfig]
|
3828
|
+
#
|
3829
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ClarifyShapConfig AWS API Documentation
|
3830
|
+
#
|
3831
|
+
class ClarifyShapConfig < Struct.new(
|
3832
|
+
:shap_baseline_config,
|
3833
|
+
:number_of_samples,
|
3834
|
+
:use_logit,
|
3835
|
+
:seed,
|
3836
|
+
:text_config)
|
3837
|
+
SENSITIVE = []
|
3838
|
+
include Aws::Structure
|
3839
|
+
end
|
3840
|
+
|
3841
|
+
# A parameter used to configure the SageMaker Clarify explainer to treat
|
3842
|
+
# text features as text so that explanations are provided for individual
|
3843
|
+
# units of text. Required only for natural language processing (NLP)
|
3844
|
+
# explainability.
|
3845
|
+
#
|
3846
|
+
# @note When making an API call, you may pass ClarifyTextConfig
|
3847
|
+
# data as a hash:
|
3848
|
+
#
|
3849
|
+
# {
|
3850
|
+
# language: "af", # required, accepts af, sq, ar, hy, eu, bn, bg, ca, zh, hr, cs, da, nl, en, et, fi, fr, de, el, gu, he, hi, hu, is, id, ga, it, kn, ky, lv, lt, lb, mk, ml, mr, ne, nb, fa, pl, pt, ro, ru, sa, sr, tn, si, sk, sl, es, sv, tl, ta, tt, te, tr, uk, ur, yo, lij, xx
|
3851
|
+
# granularity: "token", # required, accepts token, sentence, paragraph
|
3852
|
+
# }
|
3853
|
+
#
|
3854
|
+
# @!attribute [rw] language
|
3855
|
+
# Specifies the language of the text features in [ISO 639-1](
|
3856
|
+
# https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) or [ISO
|
3857
|
+
# 639-3][1] code of a supported language.
|
3858
|
+
#
|
3859
|
+
# <note markdown="1"> For a mix of multiple languages, use code `'xx'`.
|
3860
|
+
#
|
3861
|
+
# </note>
|
3862
|
+
#
|
3863
|
+
#
|
3864
|
+
#
|
3865
|
+
# [1]: https://en.wikipedia.org/wiki/ISO_639-3
|
3866
|
+
# @return [String]
|
3867
|
+
#
|
3868
|
+
# @!attribute [rw] granularity
|
3869
|
+
# The unit of granularity for the analysis of text features. For
|
3870
|
+
# example, if the unit is `'token'`, then each token (like a word in
|
3871
|
+
# English) of the text is treated as a feature. SHAP values are
|
3872
|
+
# computed for each unit/feature.
|
3873
|
+
# @return [String]
|
3874
|
+
#
|
3875
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ClarifyTextConfig AWS API Documentation
|
3876
|
+
#
|
3877
|
+
class ClarifyTextConfig < Struct.new(
|
3878
|
+
:language,
|
3879
|
+
:granularity)
|
3880
|
+
SENSITIVE = []
|
3881
|
+
include Aws::Structure
|
3882
|
+
end
|
3883
|
+
|
3466
3884
|
# Specifies summary information about a Git repository.
|
3467
3885
|
#
|
3468
3886
|
# @!attribute [rw] code_repository_name
|
@@ -5742,6 +6160,38 @@ module Aws::SageMaker
|
|
5742
6160
|
# },
|
5743
6161
|
# },
|
5744
6162
|
# },
|
6163
|
+
# explainer_config: {
|
6164
|
+
# clarify_explainer_config: {
|
6165
|
+
# enable_explanations: "ClarifyEnableExplanations",
|
6166
|
+
# inference_config: {
|
6167
|
+
# features_attribute: "ClarifyFeaturesAttribute",
|
6168
|
+
# content_template: "ClarifyContentTemplate",
|
6169
|
+
# max_record_count: 1,
|
6170
|
+
# max_payload_in_mb: 1,
|
6171
|
+
# probability_index: 1,
|
6172
|
+
# label_index: 1,
|
6173
|
+
# probability_attribute: "ClarifyProbabilityAttribute",
|
6174
|
+
# label_attribute: "ClarifyLabelAttribute",
|
6175
|
+
# label_headers: ["ClarifyHeader"],
|
6176
|
+
# feature_headers: ["ClarifyHeader"],
|
6177
|
+
# feature_types: ["numerical"], # accepts numerical, categorical, text
|
6178
|
+
# },
|
6179
|
+
# shap_config: { # required
|
6180
|
+
# shap_baseline_config: { # required
|
6181
|
+
# mime_type: "ClarifyMimeType",
|
6182
|
+
# shap_baseline: "ClarifyShapBaseline",
|
6183
|
+
# shap_baseline_uri: "Url",
|
6184
|
+
# },
|
6185
|
+
# number_of_samples: 1,
|
6186
|
+
# use_logit: false,
|
6187
|
+
# seed: 1,
|
6188
|
+
# text_config: {
|
6189
|
+
# language: "af", # required, accepts af, sq, ar, hy, eu, bn, bg, ca, zh, hr, cs, da, nl, en, et, fi, fr, de, el, gu, he, hi, hu, is, id, ga, it, kn, ky, lv, lt, lb, mk, ml, mr, ne, nb, fa, pl, pt, ro, ru, sa, sr, tn, si, sk, sl, es, sv, tl, ta, tt, te, tr, uk, ur, yo, lij, xx
|
6190
|
+
# granularity: "token", # required, accepts token, sentence, paragraph
|
6191
|
+
# },
|
6192
|
+
# },
|
6193
|
+
# },
|
6194
|
+
# },
|
5745
6195
|
# }
|
5746
6196
|
#
|
5747
6197
|
# @!attribute [rw] endpoint_config_name
|
@@ -5827,6 +6277,10 @@ module Aws::SageMaker
|
|
5827
6277
|
# [1]: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_runtime_InvokeEndpointAsync.html
|
5828
6278
|
# @return [Types::AsyncInferenceConfig]
|
5829
6279
|
#
|
6280
|
+
# @!attribute [rw] explainer_config
|
6281
|
+
# A member of `CreateEndpointConfig` that enables explainers.
|
6282
|
+
# @return [Types::ExplainerConfig]
|
6283
|
+
#
|
5830
6284
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpointConfigInput AWS API Documentation
|
5831
6285
|
#
|
5832
6286
|
class CreateEndpointConfigInput < Struct.new(
|
@@ -5835,7 +6289,8 @@ module Aws::SageMaker
|
|
5835
6289
|
:data_capture_config,
|
5836
6290
|
:tags,
|
5837
6291
|
:kms_key_id,
|
5838
|
-
:async_inference_config
|
6292
|
+
:async_inference_config,
|
6293
|
+
:explainer_config)
|
5839
6294
|
SENSITIVE = []
|
5840
6295
|
include Aws::Structure
|
5841
6296
|
end
|
@@ -13854,6 +14309,10 @@ module Aws::SageMaker
|
|
13854
14309
|
# [1]: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpointConfig.html
|
13855
14310
|
# @return [Types::AsyncInferenceConfig]
|
13856
14311
|
#
|
14312
|
+
# @!attribute [rw] explainer_config
|
14313
|
+
# The configuration parameters for an explainer.
|
14314
|
+
# @return [Types::ExplainerConfig]
|
14315
|
+
#
|
13857
14316
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfigOutput AWS API Documentation
|
13858
14317
|
#
|
13859
14318
|
class DescribeEndpointConfigOutput < Struct.new(
|
@@ -13863,7 +14322,8 @@ module Aws::SageMaker
|
|
13863
14322
|
:data_capture_config,
|
13864
14323
|
:kms_key_id,
|
13865
14324
|
:creation_time,
|
13866
|
-
:async_inference_config
|
14325
|
+
:async_inference_config,
|
14326
|
+
:explainer_config)
|
13867
14327
|
SENSITIVE = []
|
13868
14328
|
include Aws::Structure
|
13869
14329
|
end
|
@@ -13977,6 +14437,10 @@ module Aws::SageMaker
|
|
13977
14437
|
# endpoint configuration.
|
13978
14438
|
# @return [Types::PendingDeploymentSummary]
|
13979
14439
|
#
|
14440
|
+
# @!attribute [rw] explainer_config
|
14441
|
+
# The configuration parameters for an explainer.
|
14442
|
+
# @return [Types::ExplainerConfig]
|
14443
|
+
#
|
13980
14444
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointOutput AWS API Documentation
|
13981
14445
|
#
|
13982
14446
|
class DescribeEndpointOutput < Struct.new(
|
@@ -13991,7 +14455,8 @@ module Aws::SageMaker
|
|
13991
14455
|
:last_modified_time,
|
13992
14456
|
:last_deployment_config,
|
13993
14457
|
:async_inference_config,
|
13994
|
-
:pending_deployment_summary
|
14458
|
+
:pending_deployment_summary,
|
14459
|
+
:explainer_config)
|
13995
14460
|
SENSITIVE = []
|
13996
14461
|
include Aws::Structure
|
13997
14462
|
end
|
@@ -19157,6 +19622,57 @@ module Aws::SageMaker
|
|
19157
19622
|
include Aws::Structure
|
19158
19623
|
end
|
19159
19624
|
|
19625
|
+
# A parameter to activate explainers.
|
19626
|
+
#
|
19627
|
+
# @note When making an API call, you may pass ExplainerConfig
|
19628
|
+
# data as a hash:
|
19629
|
+
#
|
19630
|
+
# {
|
19631
|
+
# clarify_explainer_config: {
|
19632
|
+
# enable_explanations: "ClarifyEnableExplanations",
|
19633
|
+
# inference_config: {
|
19634
|
+
# features_attribute: "ClarifyFeaturesAttribute",
|
19635
|
+
# content_template: "ClarifyContentTemplate",
|
19636
|
+
# max_record_count: 1,
|
19637
|
+
# max_payload_in_mb: 1,
|
19638
|
+
# probability_index: 1,
|
19639
|
+
# label_index: 1,
|
19640
|
+
# probability_attribute: "ClarifyProbabilityAttribute",
|
19641
|
+
# label_attribute: "ClarifyLabelAttribute",
|
19642
|
+
# label_headers: ["ClarifyHeader"],
|
19643
|
+
# feature_headers: ["ClarifyHeader"],
|
19644
|
+
# feature_types: ["numerical"], # accepts numerical, categorical, text
|
19645
|
+
# },
|
19646
|
+
# shap_config: { # required
|
19647
|
+
# shap_baseline_config: { # required
|
19648
|
+
# mime_type: "ClarifyMimeType",
|
19649
|
+
# shap_baseline: "ClarifyShapBaseline",
|
19650
|
+
# shap_baseline_uri: "Url",
|
19651
|
+
# },
|
19652
|
+
# number_of_samples: 1,
|
19653
|
+
# use_logit: false,
|
19654
|
+
# seed: 1,
|
19655
|
+
# text_config: {
|
19656
|
+
# language: "af", # required, accepts af, sq, ar, hy, eu, bn, bg, ca, zh, hr, cs, da, nl, en, et, fi, fr, de, el, gu, he, hi, hu, is, id, ga, it, kn, ky, lv, lt, lb, mk, ml, mr, ne, nb, fa, pl, pt, ro, ru, sa, sr, tn, si, sk, sl, es, sv, tl, ta, tt, te, tr, uk, ur, yo, lij, xx
|
19657
|
+
# granularity: "token", # required, accepts token, sentence, paragraph
|
19658
|
+
# },
|
19659
|
+
# },
|
19660
|
+
# },
|
19661
|
+
# }
|
19662
|
+
#
|
19663
|
+
# @!attribute [rw] clarify_explainer_config
|
19664
|
+
# A member of `ExplainerConfig` that contains configuration parameters
|
19665
|
+
# for the SageMaker Clarify explainer.
|
19666
|
+
# @return [Types::ClarifyExplainerConfig]
|
19667
|
+
#
|
19668
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ExplainerConfig AWS API Documentation
|
19669
|
+
#
|
19670
|
+
class ExplainerConfig < Struct.new(
|
19671
|
+
:clarify_explainer_config)
|
19672
|
+
SENSITIVE = []
|
19673
|
+
include Aws::Structure
|
19674
|
+
end
|
19675
|
+
|
19160
19676
|
# The container for the metadata for Fail step.
|
19161
19677
|
#
|
19162
19678
|
# @!attribute [rw] error_message
|
data/lib/aws-sdk-sagemaker.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-sagemaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.143.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|