pub trait NdActivate<A, D>where
A: ScalarOperand,
D: Dimension,{
type Data: Data<Elem = A>;
Show 14 methods
// Required method
fn activate<B, F>(&self, f: F) -> Array<B, D>
where F: Fn(A) -> B;
// Provided methods
fn linear(&self) -> Array<A, D>
where A: Clone { ... }
fn linear_derivative(&self) -> Array<A, D>
where A: One { ... }
fn heavyside(&self) -> Array<A, D>
where A: One + PartialOrd + Zero { ... }
fn relu(&self) -> Array<A, D>
where A: PartialOrd + Zero { ... }
fn relu_derivative(&self) -> Array<A, D>
where A: PartialOrd + One + Zero { ... }
fn sigmoid(&self) -> Array<A, D>
where A: Float { ... }
fn sigmoid_derivative(&self) -> Array<A, D>
where A: Float { ... }
fn sigmoid_complex(&self) -> Array<A, D>
where A: ComplexFloat { ... }
fn sigmoid_complex_derivative(&self) -> Array<A, D>
where A: ComplexFloat { ... }
fn softmax(&self) -> Array<A, D>
where A: ComplexFloat { ... }
fn softmax_axis(&self, axis: usize) -> Array<A, D>
where A: ComplexFloat,
D: RemoveAxis { ... }
fn tanh(&self) -> Array<A, D>
where A: ComplexFloat { ... }
fn tanh_derivative(&self) -> Array<A, D>
where A: ComplexFloat { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn linear(&self) -> Array<A, D>where
A: Clone,
fn linear_derivative(&self) -> Array<A, D>where
A: One,
fn heavyside(&self) -> Array<A, D>
fn relu(&self) -> Array<A, D>where
A: PartialOrd + Zero,
fn relu_derivative(&self) -> Array<A, D>
Sourcefn sigmoid_derivative(&self) -> Array<A, D>where
A: Float,
fn sigmoid_derivative(&self) -> Array<A, D>where
A: Float,
fn sigmoid_complex(&self) -> Array<A, D>where
A: ComplexFloat,
fn sigmoid_complex_derivative(&self) -> Array<A, D>where
A: ComplexFloat,
fn softmax(&self) -> Array<A, D>where
A: ComplexFloat,
fn softmax_axis(&self, axis: usize) -> Array<A, D>where
A: ComplexFloat,
D: RemoveAxis,
fn tanh(&self) -> Array<A, D>where
A: ComplexFloat,
fn tanh_derivative(&self) -> Array<A, D>where
A: 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.