# TrainingJobDetailsProperty

The overview of a training job.

- 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 trainingJobDetailsProperty: sagemaker.CfnModelCard.TrainingJobDetailsProperty = {
  hyperParameters: [{
    name: 'name',
    value: 'value',
  }],
  trainingArn: 'trainingArn',
  trainingDatasets: ['trainingDatasets'],
  trainingEnvironment: {
    containerImage: ['containerImage'],
  },
  trainingMetrics: [{
    name: 'name',
    value: 123,

    // the properties below are optional
    notes: 'notes',
  }],
  userProvidedHyperParameters: [{
    name: 'name',
    value: 'value',
  }],
  userProvidedTrainingMetrics: [{
    name: 'name',
    value: 123,

    // the properties below are optional
    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

training_job_details_property = sagemaker.CfnModelCard.TrainingJobDetailsProperty(
    hyper_parameters=[sagemaker.CfnModelCard.TrainingHyperParameterProperty(
        name="name",
        value="value"
    )],
    training_arn="trainingArn",
    training_datasets=["trainingDatasets"],
    training_environment=sagemaker.CfnModelCard.TrainingEnvironmentProperty(
        container_image=["containerImage"]
    ),
    training_metrics=[sagemaker.CfnModelCard.TrainingMetricProperty(
        name="name",
        value=123,

        # the properties below are optional
        notes="notes"
    )],
    user_provided_hyper_parameters=[sagemaker.CfnModelCard.TrainingHyperParameterProperty(
        name="name",
        value="value"
    )],
    user_provided_training_metrics=[sagemaker.CfnModelCard.TrainingMetricProperty(
        name="name",
        value=123,

        # the properties below are optional
        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.*;

TrainingJobDetailsProperty trainingJobDetailsProperty = TrainingJobDetailsProperty.builder()
        .hyperParameters(List.of(TrainingHyperParameterProperty.builder()
                .name("name")
                .value("value")
                .build()))
        .trainingArn("trainingArn")
        .trainingDatasets(List.of("trainingDatasets"))
        .trainingEnvironment(TrainingEnvironmentProperty.builder()
                .containerImage(List.of("containerImage"))
                .build())
        .trainingMetrics(List.of(TrainingMetricProperty.builder()
                .name("name")
                .value(123)

                // the properties below are optional
                .notes("notes")
                .build()))
        .userProvidedHyperParameters(List.of(TrainingHyperParameterProperty.builder()
                .name("name")
                .value("value")
                .build()))
        .userProvidedTrainingMetrics(List.of(TrainingMetricProperty.builder()
                .name("name")
                .value(123)

                // the properties below are optional
                .notes("notes")
                .build()))
        .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 trainingJobDetailsProperty = new TrainingJobDetailsProperty {
    HyperParameters = new [] { new TrainingHyperParameterProperty {
        Name = "name",
        Value = "value"
    } },
    TrainingArn = "trainingArn",
    TrainingDatasets = new [] { "trainingDatasets" },
    TrainingEnvironment = new TrainingEnvironmentProperty {
        ContainerImage = new [] { "containerImage" }
    },
    TrainingMetrics = new [] { new TrainingMetricProperty {
        Name = "name",
        Value = 123,

        // the properties below are optional
        Notes = "notes"
    } },
    UserProvidedHyperParameters = new [] { new TrainingHyperParameterProperty {
        Name = "name",
        Value = "value"
    } },
    UserProvidedTrainingMetrics = new [] { new TrainingMetricProperty {
        Name = "name",
        Value = 123,

        // the properties below are optional
        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"

trainingJobDetailsProperty := &TrainingJobDetailsProperty{
	HyperParameters: []interface{}{
		&TrainingHyperParameterProperty{
			Name: jsii.String("name"),
			Value: jsii.String("value"),
		},
	},
	TrainingArn: jsii.String("trainingArn"),
	TrainingDatasets: []*string{
		jsii.String("trainingDatasets"),
	},
	TrainingEnvironment: &TrainingEnvironmentProperty{
		ContainerImage: []*string{
			jsii.String("containerImage"),
		},
	},
	TrainingMetrics: []interface{}{
		&TrainingMetricProperty{
			Name: jsii.String("name"),
			Value: jsii.Number(123),

			// the properties below are optional
			Notes: jsii.String("notes"),
		},
	},
	UserProvidedHyperParameters: []interface{}{
		&TrainingHyperParameterProperty{
			Name: jsii.String("name"),
			Value: jsii.String("value"),
		},
	},
	UserProvidedTrainingMetrics: []interface{}{
		&TrainingMetricProperty{
			Name: jsii.String("name"),
			Value: jsii.Number(123),

			// the properties below are optional
			Notes: jsii.String("notes"),
		},
	},
}
```

## Properties

- `hyperParameters`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelCard.TrainingHyperParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.TrainingHyperParameterProperty.html)[] — The hyper parameters used in the training job.

- `trainingArn`: string — The SageMaker AI training job Amazon Resource Name (ARN).

- `trainingDatasets`: string[] — The location of the datasets used to train the model.

- `trainingEnvironment`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelCard.TrainingEnvironmentProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.TrainingEnvironmentProperty.html) — The SageMaker AI training job image URI.

- `trainingMetrics`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelCard.TrainingMetricProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.TrainingMetricProperty.html)[] — The SageMaker AI training job results.

- `userProvidedHyperParameters`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelCard.TrainingHyperParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.TrainingHyperParameterProperty.html)[] — Additional hyper parameters that you've specified when training the model.

- `userProvidedTrainingMetrics`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelCard.TrainingMetricProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.TrainingMetricProperty.html)[] — Custom training job results.
