[][src]Enum opencv::ml::ANN_MLP_ActivationFunctions

#[repr(C)]pub enum ANN_MLP_ActivationFunctions {
    IDENTITY,
    SIGMOID_SYM,
    GAUSSIAN,
    RELU,
    LEAKYRELU,
}

possible activation functions

Variants

IDENTITY

Identity function: inline formula

SIGMOID_SYM

Symmetrical sigmoid: inline formula

Note: If you are using the default sigmoid activation function with the default parameter values fparam1=0 and fparam2=0 then the function used is y = 1.7159*tanh(2/3 * x), so the output will range from [-1.7159, 1.7159], instead of [0,1].

GAUSSIAN

Gaussian function: inline formula

RELU

ReLU function: inline formula

LEAKYRELU

Leaky ReLU function: for x>0 inline formula and x<=0 inline formula

Trait Implementations

impl Clone for ANN_MLP_ActivationFunctions[src]

impl Copy for ANN_MLP_ActivationFunctions[src]

impl Debug for ANN_MLP_ActivationFunctions[src]

impl PartialEq<ANN_MLP_ActivationFunctions> for ANN_MLP_ActivationFunctions[src]

impl StructuralPartialEq for ANN_MLP_ActivationFunctions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.