[][src]Struct lfa::TransformedLFA

pub struct TransformedLFA<P, E, T = Identity> {
    pub projector: P,
    pub evaluator: E,
    pub transform: T,
}

Transformed linear function approximator.

Fields

projector: Pevaluator: Etransform: T

Methods

impl<P, E, T> TransformedLFA<P, E, T>[src]

pub fn new(projector: P, evaluator: E, transform: T) -> Self[src]

impl<P: Space, T> TransformedLFA<P, ScalarFunction, T>[src]

pub fn scalar(projector: P, transform: T) -> Self[src]

impl<P: Space, T> TransformedLFA<P, PairFunction, T>[src]

pub fn pair(projector: P, transform: T) -> Self[src]

impl<P: Space, T> TransformedLFA<P, TripleFunction, T>[src]

pub fn triple(projector: P, transform: T) -> Self[src]

impl<P: Space, T> TransformedLFA<P, VectorFunction, T>[src]

pub fn vector(projector: P, n_outputs: usize, transform: T) -> Self[src]

Trait Implementations

impl<P, E, T> Parameterised for TransformedLFA<P, E, T> where
    E: Parameterised
[src]

impl<I: ?Sized, P, E, T> Embedding<I> for TransformedLFA<P, E, T> where
    P: Projector<I>, 
[src]

impl<P, E, T> Approximator for TransformedLFA<P, E, T> where
    E: Approximator,
    T: Transform<E::Output, Output = E::Output>,
    T::Output: ElementwiseMul<T::Output> + IntoVector
[src]

type Output = T::Output

The type of value being approximated.

impl<P: Copy, E: Copy, T: Copy> Copy for TransformedLFA<P, E, T>[src]

impl<P: Clone, E: Clone, T: Clone> Clone for TransformedLFA<P, E, T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<P: Debug, E: Debug, T: Debug> Debug for TransformedLFA<P, E, T>[src]

Auto Trait Implementations

impl<P, E, T> Send for TransformedLFA<P, E, T> where
    E: Send,
    P: Send,
    T: Send

impl<P, E, T> Sync for TransformedLFA<P, E, T> where
    E: Sync,
    P: Sync,
    T: Sync

Blanket Implementations

impl<T> Composable for T[src]

fn lfa<A: Approximator>(self, approximator: A) -> LFA<Self, A>[src]

Return an LFA using this Projector instance and a given Approximator.

fn stack<P>(self, p: P) -> Stack<Self, P>[src]

Return a Stack of this Projector over another.

fn add<P: Space>(self, p: P) -> Sum<Self, P> where
    Self: Space
[src]

Return the Sum of this Projector and another.

fn subtract<P: Space>(self, p: P) -> Sum<Self, Negate<P>> where
    Self: Space
[src]

Return the Sum of this Projector and the Negated other.

fn shift(self, offset: f64) -> Shift<Self>[src]

Return the original Projector with all activations Shifted by some offset.

fn multiply<P: Space>(self, p: P) -> Product<Self, P> where
    Self: Space
[src]

Return the Product of this Projector and another.

fn divide<P: Space>(self, p: P) -> Product<Self, Reciprocal<P>> where
    Self: Space
[src]

Return the Product of this Projector and the Reciprocal of the other.

fn scale(self, factor: f64) -> Scale<Self>[src]

Return the original Projector with all activations Scaled by some factor.

fn normalise_l1(self) -> L1Normalise<Self>[src]

Return the original Projector with all activations normalised in L₁.

fn normalise_l2(self) -> L2Normalise<Self>[src]

Return the original Projector with all activations normalised in L₂.

fn normalise_lp(self, p: u8) -> LpNormalise<Self>[src]

Return the original Projector with all activations normalised in Lp.

fn normalise_linf(self) -> LinfNormalise<Self>[src]

Return the original Projector with all activations normalised in L∞.

fn with_constant(self) -> Stack<Self, Constant>[src]

Return the a Stack of this Projector with a single constant feature term.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]