Struct lfa::basis::composition::L2Normalise
source · pub struct L2Normalise<P>(_);
Expand description
Apply L₂ normalisation to the output of a Projector
instance.
Implementations§
source§impl<P> L2Normalise<P>
impl<P> L2Normalise<P>
Trait Implementations§
source§impl<P: Clone> Clone for L2Normalise<P>
impl<P: Clone> Clone for L2Normalise<P>
source§fn clone(&self) -> L2Normalise<P>
fn clone(&self) -> L2Normalise<P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<P> Composable for L2Normalise<P>
impl<P> Composable for L2Normalise<P>
source§fn lfa<A: Approximator<Projection>>(self, approximator: A) -> LFA<Self, A>
fn lfa<A: Approximator<Projection>>(self, approximator: A) -> LFA<Self, A>
Return an
LFA
using this Projector
instance and a given Approximator
.source§fn shift(self, offset: f64) -> Shift<Self>
fn shift(self, offset: f64) -> Shift<Self>
Return the original
Projector
with all activations Shift
ed by some offset
.source§fn scale(self, factor: f64) -> Scale<Self>
fn scale(self, factor: f64) -> Scale<Self>
Return the original
Projector
with all activations Scale
d by some factor
.source§fn normalise_l1(self) -> L1Normalise<Self>
fn normalise_l1(self) -> L1Normalise<Self>
Return the original
Projector
with all activations normalised in L₁.source§fn normalise_l2(self) -> L2Normalise<Self>
fn normalise_l2(self) -> L2Normalise<Self>
Return the original
Projector
with all activations normalised in L₂.source§fn normalise_lp(self, p: u8) -> LpNormalise<Self>
fn normalise_lp(self, p: u8) -> LpNormalise<Self>
Return the original
Projector
with all activations normalised in Lp.source§fn normalise_linf(self) -> LinfNormalise<Self>
fn normalise_linf(self) -> LinfNormalise<Self>
Return the original
Projector
with all activations normalised in L∞.source§impl<P: Debug> Debug for L2Normalise<P>
impl<P: Debug> Debug for L2Normalise<P>
source§impl<'de, P> Deserialize<'de> for L2Normalise<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for L2Normalise<P>where
P: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more