Struct linfa_reduction::PcaParams
source · [−]pub struct PcaParams { /* private fields */ }Expand description
Pincipal Component Analysis parameters
Implementations
Trait Implementations
sourceimpl<T, D: Data<Elem = f64>> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, ReductionError> for PcaParams
impl<T, D: Data<Elem = f64>> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, ReductionError> for PcaParams
Fit a PCA model given a dataset
The Principal Component Analysis takes the records of a dataset and tries to find the best fit in a lower dimensional space such that the maximal variance is retained.
Parameters
dataset: A dataset with records in N dimensions
Returns
A fitted PCA model with origin and hyperplane
Auto Trait Implementations
impl RefUnwindSafe for PcaParams
impl Send for PcaParams
impl Sync for PcaParams
impl Unpin for PcaParams
impl UnwindSafe for PcaParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more