[][src]Enum radiate::models::neat::activation::Activation

pub enum Activation {
    Sigmoid,
    Tahn,
    Relu,
    Softmax,
    LeakyRelu(f32),
    ExpRelu(f32),
    Linear(f32),
}

Varius activation functions for a neuron, must be specified at creation

Variants

Sigmoid
Tahn
Relu
Softmax
LeakyRelu(f32)
ExpRelu(f32)
Linear(f32)

Methods

impl Activation[src]

pub fn activate(&self, x: f32) -> f32[src]

Generic activation functions for an neural network - note for a few of these an alpha parameter is needed when first assining the function

pub fn deactivate(&self, x: f32) -> f32[src]

Deactivation functions for the activation neurons

Trait Implementations

impl Clone for Activation[src]

impl Copy for Activation[src]

impl Debug for Activation[src]

impl<'de> Deserialize<'de> for Activation[src]

impl PartialEq<Activation> for Activation[src]

impl Serialize for Activation[src]

impl StructuralPartialEq for Activation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any + Serialize + Deserialize
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Debug for T where
    T: Debug + Serialize + Deserialize + ?Sized
[src]

impl<T> Deserialize for T where
    T: DeserializeOwned
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.

impl<T> Type for T where
    T: ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,