Skip to main content

Activation

Trait Activation 

Source
pub trait Activation<V> {
    // Required methods
    fn activate(x: V) -> V;
    fn derivative(y: V) -> V;
}
Expand description

A neuron activation function and its derivative.

Required Methods§

Source

fn activate(x: V) -> V

The activation of the weighted input sum x.

Source

fn derivative(y: V) -> V

Derivative expressed in terms of the activation’s output y, the way tinymind (C++) computes it during back-propagation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§