pub struct TrainingJobDefinition {
pub hyper_parameters: Option<HashMap<String, String>>,
pub input_data_config: Vec<Channel>,
pub output_data_config: OutputDataConfig,
pub resource_config: ResourceConfig,
pub stopping_condition: StoppingCondition,
pub training_input_mode: String,
}
Expand description
Defines the input needed to run a training job using the algorithm.
Fields§
§hyper_parameters: Option<HashMap<String, String>>
The hyperparameters used for the training job.
input_data_config: Vec<Channel>
An array of Channel
objects, each of which specifies an input source.
output_data_config: OutputDataConfig
the path to the S3 bucket where you want to store model artifacts. Amazon SageMaker creates subfolders for the artifacts.
resource_config: ResourceConfig
The resources, including the ML compute instances and ML storage volumes, to use for model training.
stopping_condition: StoppingCondition
Specifies a limit to how long a model training job can run. It also specifies how long a managed Spot training job has to complete. When the job reaches the time limit, Amazon SageMaker ends the training job. Use this API to cap model training costs.
To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts.
training_input_mode: String
The input mode used by the algorithm for the training job. For the input modes that Amazon SageMaker algorithms support, see Algorithms.
If an algorithm supports the File
input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an algorithm supports the Pipe
input mode, Amazon SageMaker streams data directly from S3 to the container.
Trait Implementations§
Source§impl Clone for TrainingJobDefinition
impl Clone for TrainingJobDefinition
Source§fn clone(&self) -> TrainingJobDefinition
fn clone(&self) -> TrainingJobDefinition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more