#[non_exhaustive]pub struct HyperParameterSpecification {
pub name: Option<String>,
pub description: Option<String>,
pub type: Option<ParameterType>,
pub range: Option<ParameterRange>,
pub is_tunable: Option<bool>,
pub is_required: Option<bool>,
pub default_value: Option<String>,
}
Expand description
Defines a hyperparameter to be used by an algorithm.
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.name: Option<String>
The name of this hyperparameter. The name must be unique.
description: Option<String>
A brief description of the hyperparameter.
type: Option<ParameterType>
The type of this hyperparameter. The valid types are Integer
, Continuous
, Categorical
, and FreeText
.
range: Option<ParameterRange>
The allowed range for this hyperparameter.
is_tunable: Option<bool>
Indicates whether this hyperparameter is tunable in a hyperparameter tuning job.
is_required: Option<bool>
Indicates whether this hyperparameter is required.
default_value: Option<String>
The default value for this hyperparameter. If a default value is specified, a hyperparameter cannot be required.
Implementations§
source§impl HyperParameterSpecification
impl HyperParameterSpecification
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A brief description of the hyperparameter.
sourcepub fn type(&self) -> Option<&ParameterType>
pub fn type(&self) -> Option<&ParameterType>
The type of this hyperparameter. The valid types are Integer
, Continuous
, Categorical
, and FreeText
.
sourcepub fn range(&self) -> Option<&ParameterRange>
pub fn range(&self) -> Option<&ParameterRange>
The allowed range for this hyperparameter.
sourcepub fn is_tunable(&self) -> Option<bool>
pub fn is_tunable(&self) -> Option<bool>
Indicates whether this hyperparameter is tunable in a hyperparameter tuning job.
sourcepub fn is_required(&self) -> Option<bool>
pub fn is_required(&self) -> Option<bool>
Indicates whether this hyperparameter is required.
sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value for this hyperparameter. If a default value is specified, a hyperparameter cannot be required.
source§impl HyperParameterSpecification
impl HyperParameterSpecification
sourcepub fn builder() -> HyperParameterSpecificationBuilder
pub fn builder() -> HyperParameterSpecificationBuilder
Creates a new builder-style object to manufacture HyperParameterSpecification
.
Trait Implementations§
source§impl Clone for HyperParameterSpecification
impl Clone for HyperParameterSpecification
source§fn clone(&self) -> HyperParameterSpecification
fn clone(&self) -> HyperParameterSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HyperParameterSpecification
impl Debug for HyperParameterSpecification
impl StructuralPartialEq for HyperParameterSpecification
Auto Trait Implementations§
impl Freeze for HyperParameterSpecification
impl RefUnwindSafe for HyperParameterSpecification
impl Send for HyperParameterSpecification
impl Sync for HyperParameterSpecification
impl Unpin for HyperParameterSpecification
impl UnwindSafe for HyperParameterSpecification
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