pub enum Hyperparameters {
    Decay,
    Dropout,
    LearningRate,
    Momentum,
    Temperature,
    WeightDecay,
    Unknown,
}Expand description
Auto-generated discriminant enum variants
Variants§
Implementations§
Source§impl Hyperparameters
 
impl Hyperparameters
pub fn decay() -> Self
pub fn dropout() -> Self
pub fn learning_rate() -> Self
pub fn momentum() -> Self
pub fn temperature() -> Self
pub fn weight_decay() -> Self
pub fn unknown() -> Self
Source§impl Hyperparameters
 
impl Hyperparameters
Sourcepub const fn is_decay(&self) -> bool
 
pub const fn is_decay(&self) -> bool
Returns true if the enum is Hyperparameters::Decay otherwise false
Sourcepub const fn is_dropout(&self) -> bool
 
pub const fn is_dropout(&self) -> bool
Returns true if the enum is Hyperparameters::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 Hyperparameters::LearningRate otherwise false
Sourcepub const fn is_momentum(&self) -> bool
 
pub const fn is_momentum(&self) -> bool
Returns true if the enum is Hyperparameters::Momentum otherwise false
Sourcepub const fn is_temperature(&self) -> bool
 
pub const fn is_temperature(&self) -> bool
Returns true if the enum is Hyperparameters::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 Hyperparameters::WeightDecay otherwise false
Sourcepub const fn is_unknown(&self) -> bool
 
pub const fn is_unknown(&self) -> bool
Returns true if the enum is Hyperparameters::Unknown otherwise false
Trait Implementations§
Source§impl AsRef<str> for Hyperparameters
 
impl AsRef<str> for Hyperparameters
Source§impl Clone for Hyperparameters
 
impl Clone for Hyperparameters
Source§fn clone(&self) -> Hyperparameters
 
fn clone(&self) -> Hyperparameters
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
 
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for Hyperparameters
 
impl Debug for Hyperparameters
Source§impl<'de> Deserialize<'de> for Hyperparameters
 
impl<'de> Deserialize<'de> for Hyperparameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Hyperparameters
 
impl Display for Hyperparameters
Source§impl<'_enum, T> From<&'_enum HyperParams<T>> for Hyperparameters
 
impl<'_enum, T> From<&'_enum HyperParams<T>> for Hyperparameters
Source§fn from(val: &'_enum HyperParams<T>) -> Hyperparameters
 
fn from(val: &'_enum HyperParams<T>) -> Hyperparameters
Converts to this type from the input type.
Source§impl<T> From<HyperParams<T>> for Hyperparameters
 
impl<T> From<HyperParams<T>> for Hyperparameters
Source§fn from(val: HyperParams<T>) -> Hyperparameters
 
fn from(val: HyperParams<T>) -> Hyperparameters
Converts to this type from the input type.
Source§impl FromStr for Hyperparameters
 
impl FromStr for Hyperparameters
Source§impl Hash for Hyperparameters
 
impl Hash for Hyperparameters
Source§impl IntoEnumIterator for Hyperparameters
 
impl IntoEnumIterator for Hyperparameters
type Iterator = HyperparametersIter
fn iter() -> HyperparametersIter ⓘ
Source§impl Ord for Hyperparameters
 
impl Ord for Hyperparameters
Source§fn cmp(&self, other: &Hyperparameters) -> Ordering
 
fn cmp(&self, other: &Hyperparameters) -> 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 Hyperparameters
 
impl PartialEq for Hyperparameters
Source§impl PartialOrd for Hyperparameters
 
impl PartialOrd for Hyperparameters
Source§impl Serialize for Hyperparameters
 
impl Serialize for Hyperparameters
Source§impl TryFrom<&str> for Hyperparameters
 
impl TryFrom<&str> for Hyperparameters
Source§impl VariantArray for Hyperparameters
 
impl VariantArray for Hyperparameters
Source§impl VariantNames for Hyperparameters
 
impl VariantNames for Hyperparameters
impl Copy for Hyperparameters
impl Eq for Hyperparameters
impl StructuralPartialEq for Hyperparameters
Auto Trait Implementations§
impl Freeze for Hyperparameters
impl RefUnwindSafe for Hyperparameters
impl Send for Hyperparameters
impl Sync for Hyperparameters
impl Unpin for Hyperparameters
impl UnwindSafe for Hyperparameters
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> CallInPlace<T> for Twhere
    T: CallInto<T>,
 
impl<T> CallInPlace<T> for Twhere
    T: CallInto<T>,
Source§fn call_inplace<F>(&mut self, f: F) -> <T as CallInto<T>>::Output
 
fn call_inplace<F>(&mut self, f: F) -> <T as CallInto<T>>::Output
The 
call_on_mut method allows an object to be passed onto a function that takes a mutable reference
to the object. This is useful for cases where you want to perform an operation on
an object and mutate it in the process.Source§impl<T> CallInto<T> for T
 
impl<T> CallInto<T> for T
Source§impl<T> CallOn<T> for Twhere
    T: CallInto<T>,
 
impl<T> CallOn<T> for Twhere
    T: CallInto<T>,
Source§fn call_on<F>(&self, f: F) -> <T as CallInto<T>>::Output
 
fn call_on<F>(&self, f: F) -> <T as CallInto<T>>::Output
The 
call_on method allows an object to be passed onto a function that takes a reference
to the object. This is useful for cases where you want to perform an operation on
an object without needing to extract it from a container or context.