pub struct PcaConfig {
pub n_components: usize,
pub max_iterations: usize,
pub tolerance: f64,
pub center: bool,
pub scale: bool,
pub solver: PcaSolver,
}Expand description
PCA configuration
Fields§
§n_components: usizeNumber of principal components to extract
max_iterations: usizeMaximum power iterations per component (only used for PowerIteration solver)
tolerance: f64Convergence tolerance for power iteration (only used for PowerIteration solver)
center: boolSubtract column means before PCA (default: true)
scale: boolDivide by column std dev before PCA (default: false)
solver: PcaSolverSolver strategy (default: Auto)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PcaConfig
impl RefUnwindSafe for PcaConfig
impl Send for PcaConfig
impl Sync for PcaConfig
impl Unpin for PcaConfig
impl UnsafeUnpin for PcaConfig
impl UnwindSafe for PcaConfig
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