Struct linfa_reduction::PcaParams
source · pub struct PcaParams { /* private fields */ }
Expand description
Pincipal Component Analysis parameters
Implementations§
Trait Implementations§
source§impl<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
source§impl PartialEq for PcaParams
impl PartialEq for PcaParams
impl Eq for PcaParams
impl StructuralEq for PcaParams
impl StructuralPartialEq for PcaParams
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§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.