Class CfnEndpointConfig.ClarifyShapConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ClarifyShapConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfig.ClarifyShapConfigProperty>
- Enclosing interface:
CfnEndpointConfig.ClarifyShapConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfig.ClarifyShapConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfig.ClarifyShapConfigProperty>
A builder for
CfnEndpointConfig.ClarifyShapConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.numberOfSamples
(Number numberOfSamples) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getNumberOfSamples()
Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getSeed()
shapBaselineConfig
(IResolvable shapBaselineConfig) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getShapBaselineConfig()
shapBaselineConfig
(CfnEndpointConfig.ClarifyShapBaselineConfigProperty shapBaselineConfig) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getShapBaselineConfig()
textConfig
(IResolvable textConfig) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getTextConfig()
Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getTextConfig()
Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getUseLogit()
useLogit
(IResolvable useLogit) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getUseLogit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shapBaselineConfig
@Stability(Stable) public CfnEndpointConfig.ClarifyShapConfigProperty.Builder shapBaselineConfig(IResolvable shapBaselineConfig) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getShapBaselineConfig()
- Parameters:
shapBaselineConfig
- The configuration for the SHAP baseline of the Kernal SHAP algorithm. This parameter is required.- Returns:
this
-
shapBaselineConfig
@Stability(Stable) public CfnEndpointConfig.ClarifyShapConfigProperty.Builder shapBaselineConfig(CfnEndpointConfig.ClarifyShapBaselineConfigProperty shapBaselineConfig) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getShapBaselineConfig()
- Parameters:
shapBaselineConfig
- The configuration for the SHAP baseline of the Kernal SHAP algorithm. This parameter is required.- Returns:
this
-
numberOfSamples
@Stability(Stable) public CfnEndpointConfig.ClarifyShapConfigProperty.Builder numberOfSamples(Number numberOfSamples) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getNumberOfSamples()
- Parameters:
numberOfSamples
- The number of samples to be used for analysis by the Kernal SHAP algorithm.The number of samples 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 .
- Returns:
this
-
seed
Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getSeed()
- Parameters:
seed
- The starting value used to initialize the random number generator in the explainer. Provide a value for this parameter to obtain a deterministic SHAP result.- Returns:
this
-
textConfig
@Stability(Stable) public CfnEndpointConfig.ClarifyShapConfigProperty.Builder textConfig(IResolvable textConfig) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getTextConfig()
- Parameters:
textConfig
- A parameter that indicates if text features are treated as text and explanations are provided for individual units of text. Required for natural language processing (NLP) explainability only.- Returns:
this
-
textConfig
@Stability(Stable) public CfnEndpointConfig.ClarifyShapConfigProperty.Builder textConfig(CfnEndpointConfig.ClarifyTextConfigProperty textConfig) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getTextConfig()
- Parameters:
textConfig
- A parameter that indicates if text features are treated as text and explanations are provided for individual units of text. Required for natural language processing (NLP) explainability only.- Returns:
this
-
useLogit
@Stability(Stable) public CfnEndpointConfig.ClarifyShapConfigProperty.Builder useLogit(Boolean useLogit) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getUseLogit()
- Parameters:
useLogit
- A Boolean toggle to indicate if you want to use the logit function (true) or log-odds units (false) for model predictions. Defaults to false.- Returns:
this
-
useLogit
@Stability(Stable) public CfnEndpointConfig.ClarifyShapConfigProperty.Builder useLogit(IResolvable useLogit) Sets the value ofCfnEndpointConfig.ClarifyShapConfigProperty.getUseLogit()
- Parameters:
useLogit
- A Boolean toggle to indicate if you want to use the logit function (true) or log-odds units (false) for model predictions. Defaults to false.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpointConfig.ClarifyShapConfigProperty>
- Returns:
- a new instance of
CfnEndpointConfig.ClarifyShapConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-