Class ClarifyShapBaselineConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ClarifyShapBaselineConfig.Builder,ClarifyShapBaselineConfig>
The configuration for the SHAP baseline (also called the background or reference dataset) of the Kernal SHAP algorithm.
-
The number of records in the baseline data determines the size of the synthetic dataset, which has an impact on latency of explainability requests. For more information, see the Synthetic data of Configure and create an endpoint.
-
ShapBaselineandShapBaselineUriare mutually exclusive parameters. One or the either is required to configure a SHAP baseline.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringmimeType()The MIME type of the baseline data.static Class<? extends ClarifyShapBaselineConfig.Builder> final StringThe inline SHAP baseline data in string format.final StringThe uniform resource identifier (URI) of the S3 bucket where the SHAP baseline file is stored.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
mimeType
The MIME type of the baseline data. Choose from
'text/csv'or'application/jsonlines'. Defaults to'text/csv'.- Returns:
- The MIME type of the baseline data. Choose from
'text/csv'or'application/jsonlines'. Defaults to'text/csv'.
-
shapBaseline
The inline SHAP baseline data in string format.
ShapBaselinecan have one or multiple records to be used as the baseline dataset. The format of the SHAP baseline file should be the same format as the training dataset. For example, if the training dataset is in CSV format and each record contains four features, and all features are numerical, then the format of the baseline data should also share these characteristics. For natural language processing (NLP) of text columns, the baseline value should be the value used to replace the unit of text specified by theGranularityof theTextConfigparameter. The size limit forShapBaslineis 4 KB. Use theShapBaselineUriparameter if you want to provide more than 4 KB of baseline data.- Returns:
- The inline SHAP baseline data in string format.
ShapBaselinecan have one or multiple records to be used as the baseline dataset. The format of the SHAP baseline file should be the same format as the training dataset. For example, if the training dataset is in CSV format and each record contains four features, and all features are numerical, then the format of the baseline data should also share these characteristics. For natural language processing (NLP) of text columns, the baseline value should be the value used to replace the unit of text specified by theGranularityof theTextConfigparameter. The size limit forShapBaslineis 4 KB. Use theShapBaselineUriparameter if you want to provide more than 4 KB of baseline data.
-
shapBaselineUri
The uniform resource identifier (URI) of the S3 bucket where the SHAP baseline file is stored. The format of the SHAP baseline file should be the same format as the format of the training dataset. For example, if the training dataset is in CSV format, and each record in the training dataset has four features, and all features are numerical, then the baseline file should also have this same format. Each record should contain only the features. If you are using a virtual private cloud (VPC), the
ShapBaselineUrishould be accessible to the VPC. For more information about setting up endpoints with Amazon Virtual Private Cloud, see Give SageMaker access to Resources in your Amazon Virtual Private Cloud.- Returns:
- The uniform resource identifier (URI) of the S3 bucket where the SHAP baseline file is stored. The format
of the SHAP baseline file should be the same format as the format of the training dataset. For example,
if the training dataset is in CSV format, and each record in the training dataset has four features, and
all features are numerical, then the baseline file should also have this same format. Each record should
contain only the features. If you are using a virtual private cloud (VPC), the
ShapBaselineUrishould be accessible to the VPC. For more information about setting up endpoints with Amazon Virtual Private Cloud, see Give SageMaker access to Resources in your Amazon Virtual Private Cloud.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ClarifyShapBaselineConfig.Builder,ClarifyShapBaselineConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-