pub struct FittedFactorAnalysis<F> { /* private fields */ }Expand description
A fitted Factor Analysis model.
Created by calling Fit::fit on a FactorAnalysis.
Implements Transform<Array2<F>> to compute factor scores for new data.
Implementations§
Source§impl<F: Float + Send + Sync + 'static> FittedFactorAnalysis<F>
impl<F: Float + Send + Sync + 'static> FittedFactorAnalysis<F>
Sourcepub fn components(&self) -> &Array2<F>
pub fn components(&self) -> &Array2<F>
Loading matrix W, shape (n_features, n_components).
Sourcepub fn noise_variance(&self) -> &Array1<F>
pub fn noise_variance(&self) -> &Array1<F>
Noise variance vector ψ, shape (n_features,).
Sourcepub fn log_likelihood(&self) -> F
pub fn log_likelihood(&self) -> F
Final log-likelihood value.
Trait Implementations§
Source§impl<F: Clone> Clone for FittedFactorAnalysis<F>
impl<F: Clone> Clone for FittedFactorAnalysis<F>
Source§fn clone(&self) -> FittedFactorAnalysis<F>
fn clone(&self) -> FittedFactorAnalysis<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug> Debug for FittedFactorAnalysis<F>
impl<F: Debug> Debug for FittedFactorAnalysis<F>
Source§impl<F: Float + Send + Sync + 'static> FittedPipelineTransformer<F> for FittedFactorAnalysis<F>
impl<F: Float + Send + Sync + 'static> FittedPipelineTransformer<F> for FittedFactorAnalysis<F>
Source§fn transform_pipeline(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
fn transform_pipeline(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
Source§impl<F: Float + Send + Sync + 'static> Transform<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for FittedFactorAnalysis<F>
impl<F: Float + Send + Sync + 'static> Transform<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for FittedFactorAnalysis<F>
Source§fn transform(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
fn transform(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
Compute factor scores: E[Z | X] = Σ_z W^T Ψ⁻¹ (X - μ)^T.
Returns an array of shape (n_samples, n_components).
§Errors
Returns FerroError::ShapeMismatch if the number of columns in x
does not match the model.
Source§type Error = FerroError
type Error = FerroError
The error type returned by
transform.Auto Trait Implementations§
impl<F> Freeze for FittedFactorAnalysis<F>where
F: Freeze,
impl<F> RefUnwindSafe for FittedFactorAnalysis<F>where
F: RefUnwindSafe,
impl<F> Send for FittedFactorAnalysis<F>where
F: Send,
impl<F> Sync for FittedFactorAnalysis<F>where
F: Sync,
impl<F> Unpin for FittedFactorAnalysis<F>where
F: Unpin,
impl<F> UnsafeUnpin for FittedFactorAnalysis<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FittedFactorAnalysis<F>where
F: UnwindSafe + RefUnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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