pub enum ActivationFunction {
Sigmoid,
SigmoidDerivative,
Relu,
Tanh,
TanhDerivative,
BinaryStep,
Identity,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ActivationFunction
impl Clone for ActivationFunction
Source§fn clone(&self) -> ActivationFunction
fn clone(&self) -> ActivationFunction
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 ActivationFunction
impl Debug for ActivationFunction
Source§impl Default for ActivationFunction
impl Default for ActivationFunction
Source§fn default() -> ActivationFunction
fn default() -> ActivationFunction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActivationFunction
impl<'de> Deserialize<'de> for ActivationFunction
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 Hash for ActivationFunction
impl Hash for ActivationFunction
Source§impl IntoEnumIterator for ActivationFunction
impl IntoEnumIterator for ActivationFunction
type Iterator = ActivationFunctionIter
fn iter() -> ActivationFunctionIter ⓘ
Source§impl Ord for ActivationFunction
impl Ord for ActivationFunction
Source§fn cmp(&self, other: &ActivationFunction) -> Ordering
fn cmp(&self, other: &ActivationFunction) -> 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 ActivationFunction
impl PartialEq for ActivationFunction
Source§impl PartialOrd for ActivationFunction
impl PartialOrd for ActivationFunction
Source§impl Serialize for ActivationFunction
impl Serialize for ActivationFunction
impl Copy for ActivationFunction
impl Eq for ActivationFunction
impl StructuralPartialEq for ActivationFunction
Auto Trait Implementations§
impl Freeze for ActivationFunction
impl RefUnwindSafe for ActivationFunction
impl Send for ActivationFunction
impl Sync for ActivationFunction
impl Unpin for ActivationFunction
impl UnwindSafe for ActivationFunction
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