Struct lfa::basis::fixed::KernelProjector
source · Expand description
Kernel machine basis projector.
Fields§
§prototypes: Vec<Prototype<I, K>>
Implementations§
source§impl<I, K: Kernel<I>> KernelProjector<I, K>
impl<I, K: Kernel<I>> KernelProjector<I, K>
pub fn new(prototypes: Vec<Prototype<I, K>>) -> Self
pub fn homogeneous(
centroids: impl IntoIterator<Item = impl Into<I>>,
kernel: K
) -> Self
source§impl KernelProjector<Vector<f64>, ExpQuad>
impl KernelProjector<Vector<f64>, ExpQuad>
pub fn exp_quad(partitioning: LinearSpace<Partition>) -> Self
source§impl KernelProjector<Vector<f64>, Matern32>
impl KernelProjector<Vector<f64>, Matern32>
pub fn matern_32(partitioning: LinearSpace<Partition>) -> Self
source§impl KernelProjector<Vector<f64>, Matern52>
impl KernelProjector<Vector<f64>, Matern52>
pub fn matern_52(partitioning: LinearSpace<Partition>) -> Self
Trait Implementations§
source§impl<I: Clone, K: Clone> Clone for KernelProjector<I, K>
impl<I: Clone, K: Clone> Clone for KernelProjector<I, K>
source§fn clone(&self) -> KernelProjector<I, K>
fn clone(&self) -> KernelProjector<I, K>
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<I, K: Kernel<I>> Composable for KernelProjector<I, K>
impl<I, K: Kernel<I>> Composable for KernelProjector<I, K>
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 add<P: Space>(self, p: P) -> Sum<Self, P>where
Self: Space,
fn add<P: Space>(self, p: P) -> Sum<Self, P>where
Self: Space,
Return the
Sum
of this Projector
and another.source§fn subtract<P: Space>(self, p: P) -> Sum<Self, Negate<P>>where
Self: Space,
fn subtract<P: Space>(self, p: P) -> Sum<Self, Negate<P>>where
Self: Space,
Return the
Sum
of this Projector
and the Negate
d other.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 multiply<P: Space>(self, p: P) -> Product<Self, P>where
Self: Space,
fn multiply<P: Space>(self, p: P) -> Product<Self, P>where
Self: Space,
Return the
Product
of this Projector
and another.source§fn divide<P: Space>(self, p: P) -> Product<Self, Reciprocal<P>>where
Self: Space,
fn divide<P: Space>(self, p: P) -> Product<Self, Reciprocal<P>>where
Self: Space,
Return the
Product
of this Projector
and the Reciprocal
of the other.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<'de, I, K> Deserialize<'de> for KernelProjector<I, K>where
I: Deserialize<'de>,
K: Deserialize<'de>,
impl<'de, I, K> Deserialize<'de> for KernelProjector<I, K>where
I: Deserialize<'de>,
K: 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