pub struct PcaResult {
pub components: Vec<Vec<f64>>,
pub explained_variance: Vec<f64>,
pub explained_variance_ratio: Vec<f64>,
pub reconstruction_error: f64,
}Expand description
Outcome of a PCA fit.
Fields§
§components: Vec<Vec<f64>>The top k principal components, one length-dim unit vector per row, in
descending order of explained variance.
explained_variance: Vec<f64>Variance explained by each returned component (the leading eigenvalues of the covariance matrix).
explained_variance_ratio: Vec<f64>Each component’s explained variance as a fraction of the total variance across all features.
reconstruction_error: f64Mean squared error of reconstructing the input from the k components.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PcaResult
impl RefUnwindSafe for PcaResult
impl Send for PcaResult
impl Sync for PcaResult
impl Unpin for PcaResult
impl UnsafeUnpin for PcaResult
impl UnwindSafe for PcaResult
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