ObjectiveFunctionProperty Struct
The function that is optimized during model training.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const objectiveFunctionProperty: sagemaker.CfnModelCard.ObjectiveFunctionProperty = {
function: {
condition: 'condition',
facet: 'facet',
function: 'function',
},
notes: 'notes',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
objective_function_property = sagemaker.CfnModelCard.ObjectiveFunctionProperty(
function=sagemaker.CfnModelCard.FunctionProperty(
condition="condition",
facet="facet",
function="function"
),
notes="notes"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
ObjectiveFunctionProperty objectiveFunctionProperty = ObjectiveFunctionProperty.builder()
.function(FunctionProperty.builder()
.condition("condition")
.facet("facet")
.function("function")
.build())
.notes("notes")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var objectiveFunctionProperty = new ObjectiveFunctionProperty {
Function = new FunctionProperty {
Condition = "condition",
Facet = "facet",
Function = "function"
},
Notes = "notes"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
objectiveFunctionProperty := &ObjectiveFunctionProperty{
Function: &FunctionProperty{
Condition: jsii.String("condition"),
Facet: jsii.String("facet"),
Function: jsii.String("function"),
},
Notes: jsii.String("notes"),
}
Properties
functionoptionalIResolvable | CfnModelCard.FunctionPropertyfunctionoptionaltyping.Union[IResolvable, FunctionProperty]functionoptionalIResolvableFunctionoptionalIResolvableFunctionoptionalinterface{} #A function object that details optimization direction, metric, and additional descriptions.
Notes about the object function, including other considerations for possible objective functions.