Class CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty>
- Enclosing interface:
CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty>
A builder for
CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.numberOfSamples(Number numberOfSamples) Sets the value ofCfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.getSeed()shapBaselineConfig(CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty shapBaselineConfig) shapBaselineConfig(IResolvable shapBaselineConfig) Sets the value ofCfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.getTextConfig()textConfig(IResolvable textConfig) Sets the value ofCfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.getTextConfig()Sets the value ofCfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.getUseLogit()useLogit(IResolvable useLogit) Sets the value ofCfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.getUseLogit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numberOfSamples
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder numberOfSamples(Number numberOfSamples) - 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
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder seed(Number seed) Sets the value ofCfnEndpointConfigPropsMixin.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
-
shapBaselineConfig
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder shapBaselineConfig(IResolvable shapBaselineConfig) - Parameters:
shapBaselineConfig- The configuration for the SHAP baseline of the Kernal SHAP algorithm.- Returns:
this
-
shapBaselineConfig
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder shapBaselineConfig(CfnEndpointConfigPropsMixin.ClarifyShapBaselineConfigProperty shapBaselineConfig) - Parameters:
shapBaselineConfig- The configuration for the SHAP baseline of the Kernal SHAP algorithm.- Returns:
this
-
textConfig
@Stability(Stable) public CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder textConfig(IResolvable textConfig) Sets the value ofCfnEndpointConfigPropsMixin.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 CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder textConfig(CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty textConfig) Sets the value ofCfnEndpointConfigPropsMixin.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 CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder useLogit(Boolean useLogit) Sets the value ofCfnEndpointConfigPropsMixin.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 CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty.Builder useLogit(IResolvable useLogit) Sets the value ofCfnEndpointConfigPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty>- Returns:
- a new instance of
CfnEndpointConfigPropsMixin.ClarifyShapConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-