# ObjectiveFunctionProperty

The function that is optimized during model training.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `function`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelCard.FunctionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.FunctionProperty.html) — A function object that details optimization direction, metric, and additional descriptions.

- `notes`: string — Notes about the object function, including other considerations for possible objective functions.
