TrainingDetailsProperty Struct
The training details of the model.
| 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 trainingDetailsProperty: sagemaker.CfnModelCard.TrainingDetailsProperty = {
objectiveFunction: {
function: {
condition: 'condition',
facet: 'facet',
function: 'function',
},
notes: 'notes',
},
trainingJobDetails: {
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',
}],
},
trainingObservations: 'trainingObservations',
};
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_details_property = sagemaker.CfnModelCard.TrainingDetailsProperty(
objective_function=sagemaker.CfnModelCard.ObjectiveFunctionProperty(
function=sagemaker.CfnModelCard.FunctionProperty(
condition="condition",
facet="facet",
function="function"
),
notes="notes"
),
training_job_details=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"
)]
),
training_observations="trainingObservations"
)
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.*;
TrainingDetailsProperty trainingDetailsProperty = TrainingDetailsProperty.builder()
.objectiveFunction(ObjectiveFunctionProperty.builder()
.function(FunctionProperty.builder()
.condition("condition")
.facet("facet")
.function("function")
.build())
.notes("notes")
.build())
.trainingJobDetails(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())
.trainingObservations("trainingObservations")
.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 trainingDetailsProperty = new TrainingDetailsProperty {
ObjectiveFunction = new ObjectiveFunctionProperty {
Function = new FunctionProperty {
Condition = "condition",
Facet = "facet",
Function = "function"
},
Notes = "notes"
},
TrainingJobDetails = 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"
} }
},
TrainingObservations = "trainingObservations"
};
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"
trainingDetailsProperty := &TrainingDetailsProperty{
ObjectiveFunction: &ObjectiveFunctionProperty{
Function: &FunctionProperty{
Condition: jsii.String("condition"),
Facet: jsii.String("facet"),
Function: jsii.String("function"),
},
Notes: jsii.String("notes"),
},
TrainingJobDetails: &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"),
},
},
},
TrainingObservations: jsii.String("trainingObservations"),
}
Properties
objectiveFunctionoptionalIResolvable | CfnModelCard.objective_functionoptionaltyping.Union[IResolvable, ObjectiveFunctionProperty]objectiveFunctionoptionalIResolvableObjectiveFunctionoptionalIResolvableObjectiveFunctionoptionalinterface{} #The function that is optimized during model training.
trainingJobDetailsoptionalIResolvable | CfnModelCard.training_job_detailsoptionaltyping.Union[IResolvable, TrainingJobDetailsProperty]trainingJobDetailsoptionalIResolvableTrainingJobDetailsoptionalIResolvableTrainingJobDetailsoptionalinterface{} #Details about any associated training jobs.
trainingObservationsoptionalstringtraining_observationsoptionalstrtrainingObservationsoptionalStringTrainingObservationsoptionalstringTrainingObservationsoptional*string #Any observations about training.