#[non_exhaustive]pub struct FinalHyperParameterTuningJobObjectiveMetric {
pub type: Option<HyperParameterTuningJobObjectiveType>,
pub metric_name: Option<String>,
pub value: Option<f32>,
}Expand description
Shows the latest objective metric emitted by a training job that was launched by a hyperparameter tuning job. You define the objective metric in the HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig.
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.type: Option<HyperParameterTuningJobObjectiveType>Select if you want to minimize or maximize the objective metric during hyperparameter tuning.
metric_name: 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.
value: Option<f32>The value of the objective metric.
Implementations§
source§impl FinalHyperParameterTuningJobObjectiveMetric
impl FinalHyperParameterTuningJobObjectiveMetric
sourcepub fn type(&self) -> Option<&HyperParameterTuningJobObjectiveType>
pub fn type(&self) -> Option<&HyperParameterTuningJobObjectiveType>
Select if you want to minimize or maximize the objective metric during hyperparameter tuning.
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
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.
source§impl FinalHyperParameterTuningJobObjectiveMetric
impl FinalHyperParameterTuningJobObjectiveMetric
sourcepub fn builder() -> FinalHyperParameterTuningJobObjectiveMetricBuilder
pub fn builder() -> FinalHyperParameterTuningJobObjectiveMetricBuilder
Creates a new builder-style object to manufacture FinalHyperParameterTuningJobObjectiveMetric.
Trait Implementations§
source§impl Clone for FinalHyperParameterTuningJobObjectiveMetric
impl Clone for FinalHyperParameterTuningJobObjectiveMetric
source§fn clone(&self) -> FinalHyperParameterTuningJobObjectiveMetric
fn clone(&self) -> FinalHyperParameterTuningJobObjectiveMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for FinalHyperParameterTuningJobObjectiveMetric
impl PartialEq for FinalHyperParameterTuningJobObjectiveMetric
source§fn eq(&self, other: &FinalHyperParameterTuningJobObjectiveMetric) -> bool
fn eq(&self, other: &FinalHyperParameterTuningJobObjectiveMetric) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FinalHyperParameterTuningJobObjectiveMetric
Auto Trait Implementations§
impl Freeze for FinalHyperParameterTuningJobObjectiveMetric
impl RefUnwindSafe for FinalHyperParameterTuningJobObjectiveMetric
impl Send for FinalHyperParameterTuningJobObjectiveMetric
impl Sync for FinalHyperParameterTuningJobObjectiveMetric
impl Unpin for FinalHyperParameterTuningJobObjectiveMetric
impl UnwindSafe for FinalHyperParameterTuningJobObjectiveMetric
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> 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