#[non_exhaustive]pub struct HyperParameterTrainingJobDefinition {Show 16 fields
pub definition_name: Option<String>,
pub tuning_objective: Option<HyperParameterTuningJobObjective>,
pub hyper_parameter_ranges: Option<ParameterRanges>,
pub static_hyper_parameters: Option<HashMap<String, String>>,
pub algorithm_specification: Option<HyperParameterAlgorithmSpecification>,
pub role_arn: Option<String>,
pub input_data_config: Option<Vec<Channel>>,
pub vpc_config: Option<VpcConfig>,
pub output_data_config: Option<OutputDataConfig>,
pub resource_config: Option<ResourceConfig>,
pub stopping_condition: Option<StoppingCondition>,
pub enable_network_isolation: bool,
pub enable_inter_container_traffic_encryption: bool,
pub enable_managed_spot_training: bool,
pub checkpoint_config: Option<CheckpointConfig>,
pub retry_strategy: Option<RetryStrategy>,
}
Expand description
Defines the training jobs launched by a hyperparameter tuning job.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.definition_name: Option<String>
The job definition name.
tuning_objective: Option<HyperParameterTuningJobObjective>
Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type
parameter.
hyper_parameter_ranges: Option<ParameterRanges>
Specifies ranges of integer, continuous, and categorical hyperparameters that a hyperparameter tuning job searches. The hyperparameter tuning job launches training jobs with hyperparameter values within these ranges to find the combination of values that result in the training job with the best performance as measured by the objective metric of the hyperparameter tuning job.
You can specify a maximum of 20 hyperparameters that a hyperparameter tuning job can search over. Every possible value of a categorical parameter range counts against this limit.
static_hyper_parameters: Option<HashMap<String, String>>
Specifies the values of hyperparameters that do not change for the tuning job.
algorithm_specification: Option<HyperParameterAlgorithmSpecification>
The HyperParameterAlgorithmSpecification
object that specifies the resource algorithm to use for the training jobs that the tuning job launches.
role_arn: Option<String>
The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.
input_data_config: Option<Vec<Channel>>
An array of Channel
objects that specify the input for the training jobs that the tuning job launches.
vpc_config: Option<VpcConfig>
The VpcConfig
object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.
output_data_config: Option<OutputDataConfig>
Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.
resource_config: Option<ResourceConfig>
The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.
Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want Amazon SageMaker to use the storage volume to store the training data, choose File
as the TrainingInputMode
in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.
stopping_condition: Option<StoppingCondition>
Specifies a limit to how long a model hyperparameter 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.
enable_network_isolation: bool
Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, Amazon SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.
enable_inter_container_traffic_encryption: bool
To encrypt all communications between ML compute instances in distributed training, choose True
. Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.
enable_managed_spot_training: bool
A Boolean indicating whether managed spot training is enabled (True
) or not (False
).
checkpoint_config: Option<CheckpointConfig>
Contains information about the output location for managed spot training checkpoint data.
retry_strategy: Option<RetryStrategy>
The number of times to retry the job when the job fails due to an InternalServerError
.
Implementations
sourceimpl HyperParameterTrainingJobDefinition
impl HyperParameterTrainingJobDefinition
sourcepub fn definition_name(&self) -> Option<&str>
pub fn definition_name(&self) -> Option<&str>
The job definition name.
sourcepub fn tuning_objective(&self) -> Option<&HyperParameterTuningJobObjective>
pub fn tuning_objective(&self) -> Option<&HyperParameterTuningJobObjective>
Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type
parameter.
sourcepub fn hyper_parameter_ranges(&self) -> Option<&ParameterRanges>
pub fn hyper_parameter_ranges(&self) -> Option<&ParameterRanges>
Specifies ranges of integer, continuous, and categorical hyperparameters that a hyperparameter tuning job searches. The hyperparameter tuning job launches training jobs with hyperparameter values within these ranges to find the combination of values that result in the training job with the best performance as measured by the objective metric of the hyperparameter tuning job.
You can specify a maximum of 20 hyperparameters that a hyperparameter tuning job can search over. Every possible value of a categorical parameter range counts against this limit.
sourcepub fn static_hyper_parameters(&self) -> Option<&HashMap<String, String>>
pub fn static_hyper_parameters(&self) -> Option<&HashMap<String, String>>
Specifies the values of hyperparameters that do not change for the tuning job.
sourcepub fn algorithm_specification(
&self
) -> Option<&HyperParameterAlgorithmSpecification>
pub fn algorithm_specification(
&self
) -> Option<&HyperParameterAlgorithmSpecification>
The HyperParameterAlgorithmSpecification
object that specifies the resource algorithm to use for the training jobs that the tuning job launches.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.
sourcepub fn input_data_config(&self) -> Option<&[Channel]>
pub fn input_data_config(&self) -> Option<&[Channel]>
An array of Channel
objects that specify the input for the training jobs that the tuning job launches.
sourcepub fn vpc_config(&self) -> Option<&VpcConfig>
pub fn vpc_config(&self) -> Option<&VpcConfig>
The VpcConfig
object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.
sourcepub fn output_data_config(&self) -> Option<&OutputDataConfig>
pub fn output_data_config(&self) -> Option<&OutputDataConfig>
Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.
sourcepub fn resource_config(&self) -> Option<&ResourceConfig>
pub fn resource_config(&self) -> Option<&ResourceConfig>
The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.
Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want Amazon SageMaker to use the storage volume to store the training data, choose File
as the TrainingInputMode
in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.
sourcepub fn stopping_condition(&self) -> Option<&StoppingCondition>
pub fn stopping_condition(&self) -> Option<&StoppingCondition>
Specifies a limit to how long a model hyperparameter 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.
sourcepub fn enable_network_isolation(&self) -> bool
pub fn enable_network_isolation(&self) -> bool
Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, Amazon SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.
sourcepub fn enable_inter_container_traffic_encryption(&self) -> bool
pub fn enable_inter_container_traffic_encryption(&self) -> bool
To encrypt all communications between ML compute instances in distributed training, choose True
. Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.
sourcepub fn enable_managed_spot_training(&self) -> bool
pub fn enable_managed_spot_training(&self) -> bool
A Boolean indicating whether managed spot training is enabled (True
) or not (False
).
sourcepub fn checkpoint_config(&self) -> Option<&CheckpointConfig>
pub fn checkpoint_config(&self) -> Option<&CheckpointConfig>
Contains information about the output location for managed spot training checkpoint data.
sourcepub fn retry_strategy(&self) -> Option<&RetryStrategy>
pub fn retry_strategy(&self) -> Option<&RetryStrategy>
The number of times to retry the job when the job fails due to an InternalServerError
.
sourceimpl HyperParameterTrainingJobDefinition
impl HyperParameterTrainingJobDefinition
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture HyperParameterTrainingJobDefinition
Trait Implementations
sourceimpl Clone for HyperParameterTrainingJobDefinition
impl Clone for HyperParameterTrainingJobDefinition
sourcefn clone(&self) -> HyperParameterTrainingJobDefinition
fn clone(&self) -> HyperParameterTrainingJobDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<HyperParameterTrainingJobDefinition> for HyperParameterTrainingJobDefinition
impl PartialEq<HyperParameterTrainingJobDefinition> for HyperParameterTrainingJobDefinition
sourcefn eq(&self, other: &HyperParameterTrainingJobDefinition) -> bool
fn eq(&self, other: &HyperParameterTrainingJobDefinition) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HyperParameterTrainingJobDefinition) -> bool
fn ne(&self, other: &HyperParameterTrainingJobDefinition) -> bool
This method tests for !=
.
impl StructuralPartialEq for HyperParameterTrainingJobDefinition
Auto Trait Implementations
impl RefUnwindSafe for HyperParameterTrainingJobDefinition
impl Send for HyperParameterTrainingJobDefinition
impl Sync for HyperParameterTrainingJobDefinition
impl Unpin for HyperParameterTrainingJobDefinition
impl UnwindSafe for HyperParameterTrainingJobDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more