pub enum Hyperparameters {
Decay,
Dropout,
LearningRate,
Momentum,
Temperature,
WeightDecay,
}Variants§
Implementations§
Source§impl Hyperparameters
impl Hyperparameters
pub fn decay() -> Hyperparameters
pub fn dropout() -> Hyperparameters
pub fn learning_rate() -> Hyperparameters
pub fn momentum() -> Hyperparameters
pub fn temperature() -> Hyperparameters
pub fn weight_decay() -> Hyperparameters
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
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§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<'de> Deserialize<'de> for Hyperparameters
impl<'de> Deserialize<'de> for Hyperparameters
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Hyperparameters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Hyperparameters, <__D as Deserializer<'de>>::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 FromStr for Hyperparameters
impl FromStr for Hyperparameters
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<Hyperparameters, <Hyperparameters as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Hyperparameters, <Hyperparameters as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§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§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for Hyperparameters
impl TryFrom<&str> for Hyperparameters
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<Hyperparameters, <Hyperparameters as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<Hyperparameters, <Hyperparameters as TryFrom<&str>>::Error>
Performs the conversion.
Source§impl VariantArray for Hyperparameters
impl VariantArray for Hyperparameters
const VARIANTS: &'static [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> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
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.Source§impl<K, S> Identity<K> for Swhere
S: Borrow<K>,
K: Identifier,
impl<K, S> Identity<K> for Swhere
S: Borrow<K>,
K: Identifier,
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoWeight<T> for T
impl<T> IntoWeight<T> for T
fn into_weight(self) -> Weight<T>
Source§impl<A, B, C> PercentDifference<B> for A
impl<A, B, C> PercentDifference<B> for A
type Output = C
Source§fn percent_diff(self, rhs: B) -> <A as PercentDifference<B>>::Output
fn percent_diff(self, rhs: B) -> <A as PercentDifference<B>>::Output
Computes the percent difference between two values.