public static final class SageMakerCreateTrainingJob.Builder
extends java.lang.Object
SageMakerCreateTrainingJob
.Modifier and Type | Method and Description |
---|---|
SageMakerCreateTrainingJob.Builder |
algorithmSpecification(AlgorithmSpecification algorithmSpecification)
Identifies the training algorithm to use.
|
SageMakerCreateTrainingJob |
build() |
SageMakerCreateTrainingJob.Builder |
comment(java.lang.String comment)
An optional description for this state.
|
static SageMakerCreateTrainingJob.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
SageMakerCreateTrainingJob.Builder |
enableNetworkIsolation(java.lang.Boolean enableNetworkIsolation)
Isolates the training container.
|
SageMakerCreateTrainingJob.Builder |
environment(java.util.Map<java.lang.String,java.lang.String> environment)
Environment variables to set in the Docker container.
|
SageMakerCreateTrainingJob.Builder |
heartbeat(Duration heartbeat)
Timeout for the heartbeat.
|
SageMakerCreateTrainingJob.Builder |
hyperparameters(java.util.Map<java.lang.String,? extends java.lang.Object> hyperparameters)
Algorithm-specific parameters that influence the quality of the model.
|
SageMakerCreateTrainingJob.Builder |
inputDataConfig(java.util.List<? extends Channel> inputDataConfig)
Describes the various datasets (e.g.
|
SageMakerCreateTrainingJob.Builder |
inputPath(java.lang.String inputPath)
JSONPath expression to select part of the state to be the input to this state.
|
SageMakerCreateTrainingJob.Builder |
integrationPattern(IntegrationPattern integrationPattern)
AWS Step Functions integrates with services directly in the Amazon States Language.
|
SageMakerCreateTrainingJob.Builder |
outputDataConfig(OutputDataConfig outputDataConfig)
Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training.
|
SageMakerCreateTrainingJob.Builder |
outputPath(java.lang.String outputPath)
JSONPath expression to select select a portion of the state output to pass to the next state.
|
SageMakerCreateTrainingJob.Builder |
resourceConfig(ResourceConfig resourceConfig)
Specifies the resources, ML compute instances, and ML storage volumes to deploy for model training.
|
SageMakerCreateTrainingJob.Builder |
resultPath(java.lang.String resultPath)
JSONPath expression to indicate where to inject the state's output.
|
SageMakerCreateTrainingJob.Builder |
resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.
|
SageMakerCreateTrainingJob.Builder |
role(IRole role)
Role for the Training Job.
|
SageMakerCreateTrainingJob.Builder |
stoppingCondition(StoppingCondition stoppingCondition)
Sets a time limit for training.
|
SageMakerCreateTrainingJob.Builder |
tags(java.util.Map<java.lang.String,java.lang.String> tags)
Tags to be applied to the train job.
|
SageMakerCreateTrainingJob.Builder |
timeout(Duration timeout)
Timeout for the state machine.
|
SageMakerCreateTrainingJob.Builder |
trainingJobName(java.lang.String trainingJobName)
Training Job Name.
|
SageMakerCreateTrainingJob.Builder |
vpcConfig(VpcConfig vpcConfig)
Specifies the VPC that you want your training job to connect to.
|
public static SageMakerCreateTrainingJob.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.SageMakerCreateTrainingJob.Builder
.public SageMakerCreateTrainingJob.Builder comment(java.lang.String comment)
Default: - No comment
comment
- An optional description for this state. This parameter is required.this
public SageMakerCreateTrainingJob.Builder heartbeat(Duration heartbeat)
Default: - None
heartbeat
- Timeout for the heartbeat. This parameter is required.this
public SageMakerCreateTrainingJob.Builder inputPath(java.lang.String inputPath)
May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}.
Default: - The entire task input (JSON path '$')
inputPath
- JSONPath expression to select part of the state to be the input to this state. This parameter is required.this
public SageMakerCreateTrainingJob.Builder integrationPattern(IntegrationPattern integrationPattern)
You can control these AWS services using service integration patterns
Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. `IntegrationPattern.RUN_JOB` for the following exceptions: `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`.
integrationPattern
- AWS Step Functions integrates with services directly in the Amazon States Language. This parameter is required.this
public SageMakerCreateTrainingJob.Builder outputPath(java.lang.String outputPath)
May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}.
Default: - The entire JSON node determined by the state input, the task result, and resultPath is passed to the next state (JSON path '$')
outputPath
- JSONPath expression to select select a portion of the state output to pass to the next state. This parameter is required.this
public SageMakerCreateTrainingJob.Builder resultPath(java.lang.String resultPath)
May also be the special value JsonPath.DISCARD, which will cause the state's input to become its output.
Default: - Replaces the entire input with the result (JSON path '$')
resultPath
- JSONPath expression to indicate where to inject the state's output. This parameter is required.this
public SageMakerCreateTrainingJob.Builder resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
You can use ResultSelector to create a payload with values that are static or selected from the state's raw result.
Default: - None
resultSelector
- The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. This parameter is required.this
public SageMakerCreateTrainingJob.Builder timeout(Duration timeout)
Default: - None
timeout
- Timeout for the state machine. This parameter is required.this
public SageMakerCreateTrainingJob.Builder algorithmSpecification(AlgorithmSpecification algorithmSpecification)
algorithmSpecification
- Identifies the training algorithm to use. This parameter is required.this
public SageMakerCreateTrainingJob.Builder inputDataConfig(java.util.List<? extends Channel> inputDataConfig)
inputDataConfig
- Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored. This parameter is required.this
public SageMakerCreateTrainingJob.Builder outputDataConfig(OutputDataConfig outputDataConfig)
outputDataConfig
- Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training. This parameter is required.this
public SageMakerCreateTrainingJob.Builder trainingJobName(java.lang.String trainingJobName)
trainingJobName
- Training Job Name. This parameter is required.this
public SageMakerCreateTrainingJob.Builder enableNetworkIsolation(java.lang.Boolean enableNetworkIsolation)
No inbound or outbound network calls can be made to or from the training container.
Default: false
enableNetworkIsolation
- Isolates the training container. This parameter is required.this
public SageMakerCreateTrainingJob.Builder environment(java.util.Map<java.lang.String,java.lang.String> environment)
Default: - No environment variables
environment
- Environment variables to set in the Docker container. This parameter is required.this
public SageMakerCreateTrainingJob.Builder hyperparameters(java.util.Map<java.lang.String,? extends java.lang.Object> hyperparameters)
Set hyperparameters before you start the learning process. For a list of hyperparameters provided by Amazon SageMaker
Default: - No hyperparameters
hyperparameters
- Algorithm-specific parameters that influence the quality of the model. This parameter is required.this
public SageMakerCreateTrainingJob.Builder resourceConfig(ResourceConfig resourceConfig)
Default: - 1 instance of EC2 `M4.XLarge` with `10GB` volume
resourceConfig
- Specifies the resources, ML compute instances, and ML storage volumes to deploy for model training. This parameter is required.this
public SageMakerCreateTrainingJob.Builder role(IRole role)
The role must be granted all necessary permissions for the SageMaker training job to be able to operate.
See https://docs.aws.amazon.com/fr_fr/sagemaker/latest/dg/sagemaker-roles.html#sagemaker-roles-createtrainingjob-perms
Default: - a role will be created.
role
- Role for the Training Job. This parameter is required.this
public SageMakerCreateTrainingJob.Builder stoppingCondition(StoppingCondition stoppingCondition)
Default: - max runtime of 1 hour
stoppingCondition
- Sets a time limit for training. This parameter is required.this
public SageMakerCreateTrainingJob.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
Default: - No tags
tags
- Tags to be applied to the train job. This parameter is required.this
public SageMakerCreateTrainingJob.Builder vpcConfig(VpcConfig vpcConfig)
Default: - No VPC
vpcConfig
- Specifies the VPC that you want your training job to connect to. This parameter is required.this
public SageMakerCreateTrainingJob build()