#[non_exhaustive]pub enum HyperParam {
Decay,
Dropout,
LearningRate,
Momentum,
Temperature,
WeightDecay,
Beta1,
Beta2,
Epsilon,
}Expand description
An enumeration of common HyperParams used in neural network configurations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl HyperParam
impl HyperParam
Sourcepub const fn is_decay(&self) -> bool
pub const fn is_decay(&self) -> bool
Returns true if the enum is HyperParam::Decay otherwise false
Sourcepub const fn is_dropout(&self) -> bool
pub const fn is_dropout(&self) -> bool
Returns true if the enum is HyperParam::Dropout otherwise false
Sourcepub const fn is_learning_rate(&self) -> bool
pub const fn is_learning_rate(&self) -> bool
Returns true if the enum is HyperParam::LearningRate otherwise false
Sourcepub const fn is_momentum(&self) -> bool
pub const fn is_momentum(&self) -> bool
Returns true if the enum is HyperParam::Momentum otherwise false
Sourcepub const fn is_temperature(&self) -> bool
pub const fn is_temperature(&self) -> bool
Returns true if the enum is HyperParam::Temperature otherwise false
Sourcepub const fn is_weight_decay(&self) -> bool
pub const fn is_weight_decay(&self) -> bool
Returns true if the enum is HyperParam::WeightDecay otherwise false
Sourcepub const fn is_beta_1(&self) -> bool
pub const fn is_beta_1(&self) -> bool
Returns true if the enum is HyperParam::Beta1 otherwise false
Sourcepub const fn is_beta_2(&self) -> bool
pub const fn is_beta_2(&self) -> bool
Returns true if the enum is HyperParam::Beta2 otherwise false
Sourcepub const fn is_epsilon(&self) -> bool
pub const fn is_epsilon(&self) -> bool
Returns true if the enum is HyperParam::Epsilon otherwise false
Trait Implementations§
Source§impl AsRef<str> for HyperParam
impl AsRef<str> for HyperParam
Source§impl Borrow<str> for HyperParam
impl Borrow<str> for HyperParam
Source§impl Clone for HyperParam
impl Clone for HyperParam
Source§fn clone(&self) -> HyperParam
fn clone(&self) -> HyperParam
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HyperParam
impl Debug for HyperParam
Source§impl Display for HyperParam
impl Display for HyperParam
Source§impl FromStr for HyperParam
impl FromStr for HyperParam
Source§impl Hash for HyperParam
impl Hash for HyperParam
Source§impl IntoEnumIterator for HyperParam
impl IntoEnumIterator for HyperParam
type Iterator = HyperParamIter
fn iter() -> HyperParamIter ⓘ
Source§impl Ord for HyperParam
impl Ord for HyperParam
Source§fn cmp(&self, other: &HyperParam) -> Ordering
fn cmp(&self, other: &HyperParam) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HyperParam
impl PartialEq for HyperParam
Source§impl PartialOrd for HyperParam
impl PartialOrd for HyperParam
Source§impl TryFrom<&str> for HyperParam
impl TryFrom<&str> for HyperParam
Source§impl VariantNames for HyperParam
impl VariantNames for HyperParam
impl Eq for HyperParam
impl StructuralPartialEq for HyperParam
Auto Trait Implementations§
impl Freeze for HyperParam
impl RefUnwindSafe for HyperParam
impl Send for HyperParam
impl Sync for HyperParam
impl Unpin for HyperParam
impl UnwindSafe for HyperParam
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.