Class ClarifyShapBaselineConfig
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.ClarifyShapBaselineConfig
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ClarifyShapBaselineConfig.Builder,ClarifyShapBaselineConfig>
@Generated("software.amazon.awssdk:codegen") public final class ClarifyShapBaselineConfig extends Object implements SdkPojo, Serializable, 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.
-
ShapBaseline
andShapBaselineUri
are mutually exclusive parameters. One or the either is required to configure a SHAP baseline.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ClarifyShapBaselineConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClarifyShapBaselineConfig.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
mimeType()
The MIME type of the baseline data.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends ClarifyShapBaselineConfig.Builder>
serializableBuilderClass()
String
shapBaseline()
The inline SHAP baseline data in string format.String
shapBaselineUri()
The uniform resource identifier (URI) of the S3 bucket where the SHAP baseline file is stored.ClarifyShapBaselineConfig.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
mimeType
public final String 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
public final String shapBaseline()
The inline SHAP baseline data in string format.
ShapBaseline
can 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 theGranularity
of theTextConfig
parameter. The size limit forShapBasline
is 4 KB. Use theShapBaselineUri
parameter if you want to provide more than 4 KB of baseline data.- Returns:
- The inline SHAP baseline data in string format.
ShapBaseline
can 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 theGranularity
of theTextConfig
parameter. The size limit forShapBasline
is 4 KB. Use theShapBaselineUri
parameter if you want to provide more than 4 KB of baseline data.
-
shapBaselineUri
public final String 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
ShapBaselineUri
should 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
ShapBaselineUri
should 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
public ClarifyShapBaselineConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ClarifyShapBaselineConfig.Builder,ClarifyShapBaselineConfig>
-
builder
public static ClarifyShapBaselineConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends ClarifyShapBaselineConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-