Class CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty>
- Enclosing interface:
CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.shapBaseline(String shapBaseline) shapBaselineUri(String shapBaselineUri)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mimeType
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty.Builder mimeType(String mimeType) - Parameters:
mimeType- The MIME type of the baseline data. Choose from'text/csv'or'application/jsonlines'. Defaults to'text/csv'.- Returns:
this
-
shapBaseline
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty.Builder shapBaseline(String shapBaseline) - Parameters:
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:
this
-
shapBaselineUri
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty.Builder shapBaselineUri(String shapBaselineUri) Sets the value ofCfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty.getShapBaselineUri()- Parameters:
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), theShapBaselineUrishould 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty>- Returns:
- a new instance of
CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-