Struct prophet::activation_fn::ActivationFn [] [src]

pub struct ActivationFn<F: Float> { /* fields omitted */ }

Represents the pair of an activation function and its derivate.

Has some convenience constructors to build some commonly used activation functions with their respective derivate.

Methods

impl<F: Float> ActivationFn<F>
[src]

Used to create custom pairs of activation functions for users who wish to use an activation function that is not already covered by this library.

Returns the base function.

Returns the derivation function.

Forwards x to the base function and returns its result.

Forwards x to the derivation of the base function and returns its result.

Convenience constructor for the identity activation function.

Convenience constructor for the binary step activation function.

Convenience constructor for the arcus tangens activation function.

Convenience constructor for the tangens hyperbolicus (tanh) activation function.

Convenience constructor for the logistic or sigmoid activation function.

Convenience constructor for the soft sign activation function.

Convenience constructor for the ReLU activation function.

Convenience constructor for the soft plus activation function.

Convenience constructor for the bent identity activation function.

Convenience constructor for the sinusoid activation function.

Convenience constructor for the gaussian activation function.

Trait Implementations

impl<F: Copy + Float> Copy for ActivationFn<F>
[src]

impl<F: Clone + Float> Clone for ActivationFn<F>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F: Debug + Float> Debug for ActivationFn<F>
[src]

Formats the value using the given formatter.

impl<F: PartialEq + Float> PartialEq for ActivationFn<F>
[src]

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

This method tests for !=.

impl<F: Float> Display for ActivationFn<F>
[src]

Formats the value using the given formatter.