Enum cosyne::Activation [−][src]
Represents which transfer function to use for evaluating neural networks.
Variants
Maps input to output directly, as if there is no transfer function.
Outputs 1 if input is greater than 0, 0 otherwise.
Outputs 1 if input is greater than 0, 0 if input is equal to 0, -1 otherwise. Useful for simple problems and boolean logic, as it only allows three possible output values.
A non-linear function. This function is the most general, so it should be defaulted to.
Tanh activation function with output range [-1.0, 1.0]
SoftSign activation function
BentIdentity activation function
Rectified linear unit activation function
Implementations
impl Activation
[src]
pub fn get_func(&self) -> fn(_: f64) -> f64
[src]
Return the corresponding function to the Activation
pub fn from_i32(n: i32) -> Activation
[src]
parse the Activation from an int 32 value
Trait Implementations
impl Clone for Activation
[src]
fn clone(&self) -> Activation
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Activation
[src]
impl Debug for Activation
[src]
impl Eq for Activation
[src]
impl PartialEq<Activation> for Activation
[src]
fn eq(&self, other: &Activation) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Activation
[src]
impl StructuralPartialEq for Activation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Activation
impl Send for Activation
impl Sync for Activation
impl Unpin for Activation
impl UnwindSafe for Activation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,