Enum prophet::Activation [] [src]

pub enum Activation {
    Identity,
    BinaryStep,
    Logistic,
    Tanh,
    ArcTan,
    SoftSign,
    ReLU,
    SoftPlus,
    BentIdentity,
    Sinusoid,
    Gaussian,
}

Represents an activation function.

Variants

Identity: ƒ(x) = x

Binary Step: ƒ(x) = 0 if x < 0 ƒ(x) = 1 if x ≥ 0

Logistic function

Tangens Hyperbolicus (tanh): ƒ(x) = tanh(x)

Arcus Tangens (atan): ƒ(x) = atan(x)

Soft Sign: ƒ(x) = x ⋅ (1 + |x|)⁻¹

ReLU: ƒ(x) = 0 if x < 0 ƒ(x) = x else

Soft Plus: ƒ(x) = ln(1 + eˣ)

Bent Identity: ƒ(x) = ½(sqrt(x² + 1) - 1) + x

Sinusoid: ƒ(x) = sin(x)

Gaussian: ƒ(x) = e⁻ˣˣ

Methods

impl Activation
[src]

[src]

Returns f(x) with a given x and f as the base function.

[src]

Returns dx(x) with a given x and dx as the derived function.

Trait Implementations

impl Debug for Activation
[src]

[src]

Formats the value using the given formatter.

impl Copy for Activation
[src]

impl Clone for Activation
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Activation
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Activation
[src]