pub struct FittedKernelPCA<F> { /* private fields */ }Expand description
A fitted Kernel PCA model holding learned eigendecomposition.
Created by calling Fit::fit on a KernelPCA. Implements
Transform<Array2<F>> to project new data.
Implementations§
Trait Implementations§
Source§impl<F: Clone> Clone for FittedKernelPCA<F>
impl<F: Clone> Clone for FittedKernelPCA<F>
Source§fn clone(&self) -> FittedKernelPCA<F>
fn clone(&self) -> FittedKernelPCA<F>
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<F: Debug> Debug for FittedKernelPCA<F>
impl<F: Debug> Debug for FittedKernelPCA<F>
Source§impl<F: Float + Send + Sync + 'static> FittedPipelineTransformer<F> for FittedKernelPCA<F>
impl<F: Float + Send + Sync + 'static> FittedPipelineTransformer<F> for FittedKernelPCA<F>
Source§fn transform_pipeline(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
fn transform_pipeline(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
Source§impl<F: Float + Send + Sync + 'static> Transform<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for FittedKernelPCA<F>
impl<F: Float + Send + Sync + 'static> Transform<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for FittedKernelPCA<F>
Source§fn transform(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
fn transform(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
Project new data onto the learned kernel principal components.
Computes the kernel between the new data and the training data, centres it appropriately, then projects using the learned eigenvectors.
§Errors
Returns FerroError::ShapeMismatch if the number of features does not
match the number seen during fitting.
Source§type Error = FerroError
type Error = FerroError
The error type returned by
transform.Auto Trait Implementations§
impl<F> Freeze for FittedKernelPCA<F>where
F: Freeze,
impl<F> RefUnwindSafe for FittedKernelPCA<F>where
F: RefUnwindSafe,
impl<F> Send for FittedKernelPCA<F>where
F: Send,
impl<F> Sync for FittedKernelPCA<F>where
F: Sync,
impl<F> Unpin for FittedKernelPCA<F>where
F: Unpin,
impl<F> UnsafeUnpin for FittedKernelPCA<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FittedKernelPCA<F>where
F: UnwindSafe + RefUnwindSafe,
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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