pub enum PcaSolver {
Auto,
Randomized {
n_oversamples: usize,
n_power_iters: usize,
},
PowerIteration,
}Expand description
Solver strategy for PCA.
Variants§
Auto
Automatically select solver based on data size: Randomized if n > 500 and k < 0.8 * min(n, d), else PowerIteration.
Randomized
Randomized SVD (Halko-Martinsson-Tropp).
Fields
PowerIteration
Legacy power iteration with deflation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PcaSolver
impl RefUnwindSafe for PcaSolver
impl Send for PcaSolver
impl Sync for PcaSolver
impl Unpin for PcaSolver
impl UnsafeUnpin for PcaSolver
impl UnwindSafe for PcaSolver
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