#[non_exhaustive]
pub struct HyperParameterTuningJobConfigBuilder { /* private fields */ }
Expand description

Implementations§

source§

impl HyperParameterTuningJobConfigBuilder

source

pub fn strategy(self, input: HyperParameterTuningJobStrategyType) -> Self

Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job it launches. For information about search strategies, see How Hyperparameter Tuning Works.

source

pub fn set_strategy( self, input: Option<HyperParameterTuningJobStrategyType> ) -> Self

Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job it launches. For information about search strategies, see How Hyperparameter Tuning Works.

source

pub fn get_strategy(&self) -> &Option<HyperParameterTuningJobStrategyType>

Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job it launches. For information about search strategies, see How Hyperparameter Tuning Works.

source

pub fn strategy_config( self, input: HyperParameterTuningJobStrategyConfig ) -> Self

The configuration for the Hyperband optimization strategy. This parameter should be provided only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig.

source

pub fn set_strategy_config( self, input: Option<HyperParameterTuningJobStrategyConfig> ) -> Self

The configuration for the Hyperband optimization strategy. This parameter should be provided only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig.

source

pub fn get_strategy_config( &self ) -> &Option<HyperParameterTuningJobStrategyConfig>

The configuration for the Hyperband optimization strategy. This parameter should be provided only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig.

source

pub fn hyper_parameter_tuning_job_objective( self, input: HyperParameterTuningJobObjective ) -> Self

The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.

source

pub fn set_hyper_parameter_tuning_job_objective( self, input: Option<HyperParameterTuningJobObjective> ) -> Self

The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.

source

pub fn get_hyper_parameter_tuning_job_objective( &self ) -> &Option<HyperParameterTuningJobObjective>

The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.

source

pub fn resource_limits(self, input: ResourceLimits) -> Self

The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.

source

pub fn set_resource_limits(self, input: Option<ResourceLimits>) -> Self

The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.

source

pub fn get_resource_limits(&self) -> &Option<ResourceLimits>

The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.

source

pub fn parameter_ranges(self, input: ParameterRanges) -> Self

The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches over to find the optimal configuration for the highest model performance against your chosen objective metric.

source

pub fn set_parameter_ranges(self, input: Option<ParameterRanges>) -> Self

The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches over to find the optimal configuration for the highest model performance against your chosen objective metric.

source

pub fn get_parameter_ranges(&self) -> &Option<ParameterRanges>

The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches over to find the optimal configuration for the highest model performance against your chosen objective metric.

source

pub fn training_job_early_stopping_type( self, input: TrainingJobEarlyStoppingType ) -> Self

Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. Because the Hyperband strategy has its own advanced internal early stopping mechanism, TrainingJobEarlyStoppingType must be OFF to use Hyperband. This parameter can take on one of the following values (the default value is OFF):

OFF

Training jobs launched by the hyperparameter tuning job do not use early stopping.

AUTO

SageMaker stops training jobs launched by the hyperparameter tuning job when they are unlikely to perform better than previously completed training jobs. For more information, see Stop Training Jobs Early.

source

pub fn set_training_job_early_stopping_type( self, input: Option<TrainingJobEarlyStoppingType> ) -> Self

Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. Because the Hyperband strategy has its own advanced internal early stopping mechanism, TrainingJobEarlyStoppingType must be OFF to use Hyperband. This parameter can take on one of the following values (the default value is OFF):

OFF

Training jobs launched by the hyperparameter tuning job do not use early stopping.

AUTO

SageMaker stops training jobs launched by the hyperparameter tuning job when they are unlikely to perform better than previously completed training jobs. For more information, see Stop Training Jobs Early.

source

pub fn get_training_job_early_stopping_type( &self ) -> &Option<TrainingJobEarlyStoppingType>

Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. Because the Hyperband strategy has its own advanced internal early stopping mechanism, TrainingJobEarlyStoppingType must be OFF to use Hyperband. This parameter can take on one of the following values (the default value is OFF):

OFF

Training jobs launched by the hyperparameter tuning job do not use early stopping.

AUTO

SageMaker stops training jobs launched by the hyperparameter tuning job when they are unlikely to perform better than previously completed training jobs. For more information, see Stop Training Jobs Early.

source

pub fn tuning_job_completion_criteria( self, input: TuningJobCompletionCriteria ) -> Self

The tuning job's completion criteria.

source

pub fn set_tuning_job_completion_criteria( self, input: Option<TuningJobCompletionCriteria> ) -> Self

The tuning job's completion criteria.

source

pub fn get_tuning_job_completion_criteria( &self ) -> &Option<TuningJobCompletionCriteria>

The tuning job's completion criteria.

source

pub fn random_seed(self, input: i32) -> Self

A value used to initialize a pseudo-random number generator. Setting a random seed and using the same seed later for the same tuning job will allow hyperparameter optimization to find more a consistent hyperparameter configuration between the two runs.

source

pub fn set_random_seed(self, input: Option<i32>) -> Self

A value used to initialize a pseudo-random number generator. Setting a random seed and using the same seed later for the same tuning job will allow hyperparameter optimization to find more a consistent hyperparameter configuration between the two runs.

source

pub fn get_random_seed(&self) -> &Option<i32>

A value used to initialize a pseudo-random number generator. Setting a random seed and using the same seed later for the same tuning job will allow hyperparameter optimization to find more a consistent hyperparameter configuration between the two runs.

source

pub fn build(self) -> HyperParameterTuningJobConfig

Consumes the builder and constructs a HyperParameterTuningJobConfig.

Trait Implementations§

source§

impl Clone for HyperParameterTuningJobConfigBuilder

source§

fn clone(&self) -> HyperParameterTuningJobConfigBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HyperParameterTuningJobConfigBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for HyperParameterTuningJobConfigBuilder

source§

fn default() -> HyperParameterTuningJobConfigBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<HyperParameterTuningJobConfigBuilder> for HyperParameterTuningJobConfigBuilder

source§

fn eq(&self, other: &HyperParameterTuningJobConfigBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for HyperParameterTuningJobConfigBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more