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§
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,
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.