Struct aws_sdk_sagemaker::types::builders::FinalHyperParameterTuningJobObjectiveMetricBuilder
source · #[non_exhaustive]pub struct FinalHyperParameterTuningJobObjectiveMetricBuilder { /* private fields */ }
Expand description
A builder for FinalHyperParameterTuningJobObjectiveMetric
.
Implementations§
source§impl FinalHyperParameterTuningJobObjectiveMetricBuilder
impl FinalHyperParameterTuningJobObjectiveMetricBuilder
sourcepub fn type(self, input: HyperParameterTuningJobObjectiveType) -> Self
pub fn type(self, input: HyperParameterTuningJobObjectiveType) -> Self
Select if you want to minimize or maximize the objective metric during hyperparameter tuning.
sourcepub fn set_type(
self,
input: Option<HyperParameterTuningJobObjectiveType>,
) -> Self
pub fn set_type( self, input: Option<HyperParameterTuningJobObjectiveType>, ) -> Self
Select if you want to minimize or maximize the objective metric during hyperparameter tuning.
sourcepub fn get_type(&self) -> &Option<HyperParameterTuningJobObjectiveType>
pub fn get_type(&self) -> &Option<HyperParameterTuningJobObjectiveType>
Select if you want to minimize or maximize the objective metric during hyperparameter tuning.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the objective metric. For SageMaker built-in algorithms, metrics are defined per algorithm. See the metrics for XGBoost as an example. You can also use a custom algorithm for training and define your own metrics. For more information, see Define metrics and environment variables.
This field is required.sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the objective metric. For SageMaker built-in algorithms, metrics are defined per algorithm. See the metrics for XGBoost as an example. You can also use a custom algorithm for training and define your own metrics. For more information, see Define metrics and environment variables.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the objective metric. For SageMaker built-in algorithms, metrics are defined per algorithm. See the metrics for XGBoost as an example. You can also use a custom algorithm for training and define your own metrics. For more information, see Define metrics and environment variables.
sourcepub fn value(self, input: f32) -> Self
pub fn value(self, input: f32) -> Self
The value of the objective metric.
This field is required.sourcepub fn build(self) -> FinalHyperParameterTuningJobObjectiveMetric
pub fn build(self) -> FinalHyperParameterTuningJobObjectiveMetric
Consumes the builder and constructs a FinalHyperParameterTuningJobObjectiveMetric
.
Trait Implementations§
source§impl Clone for FinalHyperParameterTuningJobObjectiveMetricBuilder
impl Clone for FinalHyperParameterTuningJobObjectiveMetricBuilder
source§fn clone(&self) -> FinalHyperParameterTuningJobObjectiveMetricBuilder
fn clone(&self) -> FinalHyperParameterTuningJobObjectiveMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for FinalHyperParameterTuningJobObjectiveMetricBuilder
impl Default for FinalHyperParameterTuningJobObjectiveMetricBuilder
source§fn default() -> FinalHyperParameterTuningJobObjectiveMetricBuilder
fn default() -> FinalHyperParameterTuningJobObjectiveMetricBuilder
source§impl PartialEq for FinalHyperParameterTuningJobObjectiveMetricBuilder
impl PartialEq for FinalHyperParameterTuningJobObjectiveMetricBuilder
source§fn eq(&self, other: &FinalHyperParameterTuningJobObjectiveMetricBuilder) -> bool
fn eq(&self, other: &FinalHyperParameterTuningJobObjectiveMetricBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for FinalHyperParameterTuningJobObjectiveMetricBuilder
Auto Trait Implementations§
impl Freeze for FinalHyperParameterTuningJobObjectiveMetricBuilder
impl RefUnwindSafe for FinalHyperParameterTuningJobObjectiveMetricBuilder
impl Send for FinalHyperParameterTuningJobObjectiveMetricBuilder
impl Sync for FinalHyperParameterTuningJobObjectiveMetricBuilder
impl Unpin for FinalHyperParameterTuningJobObjectiveMetricBuilder
impl UnwindSafe for FinalHyperParameterTuningJobObjectiveMetricBuilder
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