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§
Sourcefn derivative(y: V) -> V
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".