pub enum Hyperparameters {
Decay,
LearningRate,
Momentum,
BatchSize,
}Variants§
Implementations§
Source§impl Hyperparameters
impl Hyperparameters
pub fn decay() -> Self
pub fn learning_rate() -> Self
pub fn momentum() -> Self
pub fn batch_size() -> 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_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_batch_size(&self) -> bool
pub const fn is_batch_size(&self) -> bool
Returns true if the enum is Hyperparameters::BatchSize 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 copy 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 Hyperparameters
impl Debug for Hyperparameters
Source§impl Default for Hyperparameters
impl Default for Hyperparameters
Source§fn default() -> Hyperparameters
fn default() -> Hyperparameters
Returns the “default value” for a type. Read more
Source§impl Display for Hyperparameters
impl Display for Hyperparameters
Source§impl FromStr for Hyperparameters
impl FromStr for Hyperparameters
Source§impl Hash for Hyperparameters
impl Hash for Hyperparameters
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 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