Trait ActivateExt

Source
pub trait ActivateExt<U>: Activate<U> {
Show 14 methods // Provided methods fn linear(&self) -> Self::Cont<U::Output> where U: LinearActivation { ... } fn linear_derivative(&self) -> Self::Cont<U::Output> where U: LinearActivation { ... } fn heavyside(&self) -> Self::Cont<U::Output> where U: Heavyside { ... } fn heavyside_derivative(&self) -> Self::Cont<U::Output> where U: Heavyside { ... } fn relu(&self) -> Self::Cont<U::Output> where U: ReLU { ... } fn relu_derivative(&self) -> Self::Cont<U::Output> where U: ReLU { ... } fn sigmoid(&self) -> Self::Cont<U::Output> where U: Sigmoid { ... } fn sigmoid_derivative(&self) -> Self::Cont<U::Output> where U: Sigmoid { ... } fn tanh(&self) -> Self::Cont<U::Output> where U: Tanh { ... } fn tanh_derivative(&self) -> Self::Cont<U::Output> where U: Tanh { ... } fn sigmoid_complex(&self) -> Self::Cont<U> where U: ComplexFloat { ... } fn sigmoid_complex_derivative(&self) -> Self::Cont<U> where U: ComplexFloat { ... } fn tanh_complex(&self) -> Self::Cont<U> where U: ComplexFloat { ... } fn tanh_complex_derivative(&self) -> Self::Cont<U> where U: ComplexFloat { ... }
}
Expand description

This trait extends the [Activate] trait with a number of additional activation functions and their derivatives. Note: this trait is automatically implemented for any type that implements the [Activate] trait eliminating the need to implement it manually.

Provided Methods§

Source

fn linear(&self) -> Self::Cont<U::Output>

Source

fn linear_derivative(&self) -> Self::Cont<U::Output>

Source

fn heavyside(&self) -> Self::Cont<U::Output>
where U: Heavyside,

Source

fn heavyside_derivative(&self) -> Self::Cont<U::Output>
where U: Heavyside,

Source

fn relu(&self) -> Self::Cont<U::Output>
where U: ReLU,

Source

fn relu_derivative(&self) -> Self::Cont<U::Output>
where U: ReLU,

Source

fn sigmoid(&self) -> Self::Cont<U::Output>
where U: Sigmoid,

Source

fn sigmoid_derivative(&self) -> Self::Cont<U::Output>
where U: Sigmoid,

Source

fn tanh(&self) -> Self::Cont<U::Output>
where U: Tanh,

Source

fn tanh_derivative(&self) -> Self::Cont<U::Output>
where U: Tanh,

Source

fn sigmoid_complex(&self) -> Self::Cont<U>
where U: ComplexFloat,

Source

fn sigmoid_complex_derivative(&self) -> Self::Cont<U>
where U: ComplexFloat,

Source

fn tanh_complex(&self) -> Self::Cont<U>
where U: ComplexFloat,

Source

fn tanh_complex_derivative(&self) -> Self::Cont<U>
where U: ComplexFloat,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<U, S> ActivateExt<U> for S
where S: Activate<U>,