pub struct SparsePCA {
pub components: Array2<f64>,
pub mean: Array1<f64>,
pub n_components: usize,
pub alpha: f64,
pub n_iter: usize,
}Expand description
Fitted SparsePCA.
Fields§
§components: Array2<f64>Sparse component loadings (k × d).
mean: Array1<f64>Column mean subtracted at fit time.
n_components: usizeKept rank.
alpha: f64L1 penalty α used.
n_iter: usizeConvergence iterations run.
Implementations§
Source§impl SparsePCA
impl SparsePCA
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SparsePCA
impl<'de> Deserialize<'de> for SparsePCA
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SparsePCA
Auto Trait Implementations§
impl Freeze for SparsePCA
impl RefUnwindSafe for SparsePCA
impl Send for SparsePCA
impl Sync for SparsePCA
impl Unpin for SparsePCA
impl UnsafeUnpin for SparsePCA
impl UnwindSafe for SparsePCA
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