#[non_exhaustive]pub struct HyperParameterTuningInstanceConfigBuilder { /* private fields */ }
Expand description
A builder for HyperParameterTuningInstanceConfig
.
Implementations§
source§impl HyperParameterTuningInstanceConfigBuilder
impl HyperParameterTuningInstanceConfigBuilder
sourcepub fn instance_type(self, input: TrainingInstanceType) -> Self
pub fn instance_type(self, input: TrainingInstanceType) -> Self
The instance type used for processing of hyperparameter optimization jobs. Choose from general purpose (no GPUs) instance types: ml.m5.xlarge, ml.m5.2xlarge, and ml.m5.4xlarge or compute optimized (no GPUs) instance types: ml.c5.xlarge and ml.c5.2xlarge. For more information about instance types, see instance type descriptions.
This field is required.sourcepub fn set_instance_type(self, input: Option<TrainingInstanceType>) -> Self
pub fn set_instance_type(self, input: Option<TrainingInstanceType>) -> Self
The instance type used for processing of hyperparameter optimization jobs. Choose from general purpose (no GPUs) instance types: ml.m5.xlarge, ml.m5.2xlarge, and ml.m5.4xlarge or compute optimized (no GPUs) instance types: ml.c5.xlarge and ml.c5.2xlarge. For more information about instance types, see instance type descriptions.
sourcepub fn get_instance_type(&self) -> &Option<TrainingInstanceType>
pub fn get_instance_type(&self) -> &Option<TrainingInstanceType>
The instance type used for processing of hyperparameter optimization jobs. Choose from general purpose (no GPUs) instance types: ml.m5.xlarge, ml.m5.2xlarge, and ml.m5.4xlarge or compute optimized (no GPUs) instance types: ml.c5.xlarge and ml.c5.2xlarge. For more information about instance types, see instance type descriptions.
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
The number of instances of the type specified by InstanceType
. Choose an instance count larger than 1 for distributed training algorithms. See Step 2: Launch a SageMaker Distributed Training Job Using the SageMaker Python SDK for more information.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
The number of instances of the type specified by InstanceType
. Choose an instance count larger than 1 for distributed training algorithms. See Step 2: Launch a SageMaker Distributed Training Job Using the SageMaker Python SDK for more information.
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
The number of instances of the type specified by InstanceType
. Choose an instance count larger than 1 for distributed training algorithms. See Step 2: Launch a SageMaker Distributed Training Job Using the SageMaker Python SDK for more information.
sourcepub fn volume_size_in_gb(self, input: i32) -> Self
pub fn volume_size_in_gb(self, input: i32) -> Self
The volume size in GB of the data to be processed for hyperparameter optimization (optional).
This field is required.sourcepub fn set_volume_size_in_gb(self, input: Option<i32>) -> Self
pub fn set_volume_size_in_gb(self, input: Option<i32>) -> Self
The volume size in GB of the data to be processed for hyperparameter optimization (optional).
sourcepub fn get_volume_size_in_gb(&self) -> &Option<i32>
pub fn get_volume_size_in_gb(&self) -> &Option<i32>
The volume size in GB of the data to be processed for hyperparameter optimization (optional).
sourcepub fn build(self) -> HyperParameterTuningInstanceConfig
pub fn build(self) -> HyperParameterTuningInstanceConfig
Consumes the builder and constructs a HyperParameterTuningInstanceConfig
.
Trait Implementations§
source§impl Clone for HyperParameterTuningInstanceConfigBuilder
impl Clone for HyperParameterTuningInstanceConfigBuilder
source§fn clone(&self) -> HyperParameterTuningInstanceConfigBuilder
fn clone(&self) -> HyperParameterTuningInstanceConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for HyperParameterTuningInstanceConfigBuilder
impl Default for HyperParameterTuningInstanceConfigBuilder
source§fn default() -> HyperParameterTuningInstanceConfigBuilder
fn default() -> HyperParameterTuningInstanceConfigBuilder
source§impl PartialEq for HyperParameterTuningInstanceConfigBuilder
impl PartialEq for HyperParameterTuningInstanceConfigBuilder
source§fn eq(&self, other: &HyperParameterTuningInstanceConfigBuilder) -> bool
fn eq(&self, other: &HyperParameterTuningInstanceConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HyperParameterTuningInstanceConfigBuilder
Auto Trait Implementations§
impl Freeze for HyperParameterTuningInstanceConfigBuilder
impl RefUnwindSafe for HyperParameterTuningInstanceConfigBuilder
impl Send for HyperParameterTuningInstanceConfigBuilder
impl Sync for HyperParameterTuningInstanceConfigBuilder
impl Unpin for HyperParameterTuningInstanceConfigBuilder
impl UnwindSafe for HyperParameterTuningInstanceConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more