LinearActivation

Trait LinearActivation 

Source
pub trait LinearActivation {
    type Output;

    // Required methods
    fn linear(self) -> Self::Output;
    fn linear_derivative(self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn linear(self) -> Self::Output

Source

fn linear_derivative(self) -> Self::Output

Implementations on Foreign Types§

Source§

impl LinearActivation for f32

Source§

type Output = f32

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for f64

Source§

type Output = f64

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for i8

Source§

type Output = i8

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for i16

Source§

type Output = i16

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for i32

Source§

type Output = i32

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for i64

Source§

type Output = i64

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for i128

Source§

type Output = i128

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for isize

Source§

impl LinearActivation for u8

Source§

type Output = u8

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for u16

Source§

type Output = u16

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for u32

Source§

type Output = u32

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for u64

Source§

type Output = u64

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for u128

Source§

type Output = u128

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Source§

impl LinearActivation for usize

Source§

impl<A, S, D> LinearActivation for ArrayBase<S, D, A>
where A: Clone + One, D: Dimension, S: DataMut<Elem = A>,

Source§

type Output = ArrayBase<S, D, A>

Source§

fn linear(self) -> Self::Output

Source§

fn linear_derivative(self) -> Self::Output

Implementors§