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 — used for categories with 20–79 members, or when kernel PCA doesn’t improve over linear.
KernelPca(KernelPcaProjection)
Gaussian kernel PCA — used for categories with ≥80 members where kernel PCA 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 · 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 Freeze for InnerProjection
impl !RefUnwindSafe for InnerProjection
impl Send for InnerProjection
impl Sync for InnerProjection
impl Unpin for InnerProjection
impl UnsafeUnpin for InnerProjection
impl !UnwindSafe 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