pub enum InnerProjection {
LinearPca(PcaProjection),
KernelPca(KernelPcaProjection),
}Expand description
The projection type used for a category’s inner sphere.
Wraps either a linear PCA or kernel PCA projection, chosen automatically based on the category’s size and measured EVR improvement over the global projection.
Variants§
LinearPca(PcaProjection)
Standard linear PCA — chosen for categories meeting
InnerSphereConfig::min_size
but below
kernel_pca_min_size,
or when kernel PCA fails to improve over linear by
min_kernel_improvement.
KernelPca(KernelPcaProjection)
Gaussian kernel PCA — chosen for categories meeting
kernel_pca_min_size
where it measurably outperforms linear PCA.
Trait Implementations§
Source§impl Clone for InnerProjection
impl Clone for InnerProjection
Source§fn clone(&self) -> InnerProjection
fn clone(&self) -> InnerProjection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InnerProjection
impl Debug for InnerProjection
Source§impl Projection for InnerProjection
impl Projection for InnerProjection
fn project(&self, embedding: &Embedding) -> SphericalPoint
Source§fn project_rich(&self, embedding: &Embedding) -> ProjectedPoint
fn project_rich(&self, embedding: &Embedding) -> ProjectedPoint
Project with rich metadata: certainty, intensity, projection magnitude.
fn dimensionality(&self) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for InnerProjection
impl !UnwindSafe for InnerProjection
impl Freeze for InnerProjection
impl Send for InnerProjection
impl Sync for InnerProjection
impl Unpin for InnerProjection
impl UnsafeUnpin for InnerProjection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more