[−][src]Trait lfa::composition::Composable
Trait for composition of any support LFA types.
Provided methods
fn lfa<A: Approximator>(self, approximator: A) -> LFA<Self, A>
Return an LFA
using this Projector
instance and a given Approximator
.
fn stack<P>(self, p: P) -> Stack<Self, P>
Return a Stack
of this Projector
over another.
fn add<P: Space>(self, p: P) -> Sum<Self, P> where
Self: Space,
Self: Space,
Return the Sum
of this Projector
and another.
fn subtract<P: Space>(self, p: P) -> Sum<Self, Negate<P>> where
Self: Space,
Self: Space,
Return the Sum
of this Projector
and the Negate
d other.
fn shift(self, offset: f64) -> Shift<Self>
Return the original Projector
with all activations Shift
ed by some offset
.
fn multiply<P: Space>(self, p: P) -> Product<Self, P> where
Self: Space,
Self: Space,
Return the Product
of this Projector
and another.
fn divide<P: Space>(self, p: P) -> Product<Self, Reciprocal<P>> where
Self: Space,
Self: Space,
Return the Product
of this Projector
and the Reciprocal
of the other.
fn scale(self, factor: f64) -> Scale<Self>
Return the original Projector
with all activations Scale
d by some factor
.
fn normalise_l1(self) -> L1Normalise<Self>
Return the original Projector
with all activations normalised in L₁.
fn normalise_l2(self) -> L2Normalise<Self>
Return the original Projector
with all activations normalised in L₂.
fn normalise_lp(self, p: u8) -> LpNormalise<Self>
Return the original Projector
with all activations normalised in Lp.
fn normalise_linf(self) -> LinfNormalise<Self>
Return the original Projector
with all activations normalised in L∞.
fn with_constant(self) -> Stack<Self, Constant>
Return the a Stack
of this Projector
with a single constant feature term.
Implementors
impl<T> Composable for T
[src]
fn lfa<A: Approximator>(self, approximator: A) -> LFA<Self, A>
[src]
fn stack<P>(self, p: P) -> Stack<Self, P>
[src]
fn add<P: Space>(self, p: P) -> Sum<Self, P> where
Self: Space,
[src]
Self: Space,
fn subtract<P: Space>(self, p: P) -> Sum<Self, Negate<P>> where
Self: Space,
[src]
Self: Space,
fn shift(self, offset: f64) -> Shift<Self>
[src]
fn multiply<P: Space>(self, p: P) -> Product<Self, P> where
Self: Space,
[src]
Self: Space,
fn divide<P: Space>(self, p: P) -> Product<Self, Reciprocal<P>> where
Self: Space,
[src]
Self: Space,