[][src]Trait lfa::transforms::Transform

pub trait Transform<T> {
    fn transform(&self, x: T) -> T;
fn grad(&self, x: T) -> T
    where
        T: Gradient
; }

An interface for differentiable transformations.

Required methods

fn transform(&self, x: T) -> T

Return the value of the transform for input x.

fn grad(&self, x: T) -> T where
    T: Gradient, 

Return the gradient of the transform for input x.

Loading content...

Implementors

impl Transform<f64> for Identity[src]

impl Transform<f64> for Softplus[src]

impl Transform<f64> for Logistic[src]

impl Transform<f64> for Exp[src]

impl Transform<(f64, f64)> for Identity[src]

impl Transform<(f64, f64, f64)> for Identity[src]

impl Transform<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for Identity[src]

Loading content...