Skip to content
v2.278.0

TrainingJobDetailsProperty Struct ​

The overview of a training job.

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 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
# 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
// 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();
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"
    } }
};
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 ​

hyperParametersoptionalIResolvable | IResolvable | CfnModelCard.TrainingHyperParameterProperty[]hyper_parametersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TrainingHyperParameterProperty]]]hyperParametersoptionalIResolvableHyperParametersoptionalIResolvableHyperParametersoptionalinterface{} #
The hyper parameters used in the training job.
trainingArnoptionalstringtraining_arnoptionalstrtrainingArnoptionalStringTrainingArnoptionalstringTrainingArnoptional*string #
The SageMaker AI training job Amazon Resource Name (ARN).
trainingDatasetsoptionalstring[]training_datasetsoptionaltyping.List[str]trainingDatasetsoptionalList<String>TrainingDatasetsoptionalstring[]TrainingDatasetsoptional*[]*string #
The location of the datasets used to train the model.
trainingEnvironmentoptionalIResolvable | CfnModelCard.TrainingEnvironmentPropertytraining_environmentoptionaltyping.Union[IResolvable, TrainingEnvironmentProperty]trainingEnvironmentoptionalIResolvableTrainingEnvironmentoptionalIResolvableTrainingEnvironmentoptionalinterface{} #
The SageMaker AI training job image URI.
trainingMetricsoptionalIResolvable | IResolvable | CfnModelCard.TrainingMetricProperty[]training_metricsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TrainingMetricProperty]]]trainingMetricsoptionalIResolvableTrainingMetricsoptionalIResolvableTrainingMetricsoptionalinterface{} #
The SageMaker AI training job results.
userProvidedHyperParametersoptionalIResolvable | IResolvable | CfnModelCard.TrainingHyperParameterProperty[]user_provided_hyper_parametersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TrainingHyperParameterProperty]]]userProvidedHyperParametersoptionalIResolvableUserProvidedHyperParametersoptionalIResolvableUserProvidedHyperParametersoptionalinterface{} #
Additional hyper parameters that you've specified when training the model.
userProvidedTrainingMetricsoptionalIResolvable | IResolvable | CfnModelCard.TrainingMetricProperty[]user_provided_training_metricsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TrainingMetricProperty]]]userProvidedTrainingMetricsoptionalIResolvableUserProvidedTrainingMetricsoptionalIResolvableUserProvidedTrainingMetricsoptionalinterface{} #
Custom training job results.