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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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