Class CfnModelCard.FunctionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.FunctionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.FunctionProperty>
- Enclosing interface:
- CfnModelCard.FunctionProperty
@Stability(Stable)
public static final class CfnModelCard.FunctionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.FunctionProperty>
A builder for
CfnModelCard.FunctionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnModelCard.FunctionProperty.getCondition()Sets the value ofCfnModelCard.FunctionProperty.getFacet()Sets the value ofCfnModelCard.FunctionProperty.getFunction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
condition
Sets the value ofCfnModelCard.FunctionProperty.getCondition()- Parameters:
condition- An optional description of any conditions of your objective function metric.- Returns:
this
-
facet
Sets the value ofCfnModelCard.FunctionProperty.getFacet()- Parameters:
facet- The metric of the model's objective function. For example, loss or rmse . The following list shows examples of the values that you can specify for the metric:ACCURACYAUCLOSSMAERMSE
- Returns:
this
-
function
Sets the value ofCfnModelCard.FunctionProperty.getFunction()- Parameters:
function- The optimization direction of the model's objective function. You must specify one of the following values:.MaximizeMinimize
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelCard.FunctionProperty>- Returns:
- a new instance of
CfnModelCard.FunctionProperty - Throws:
NullPointerException- if any required attribute was not provided
-