Struct linfa_pls::PlsCanonical
source · pub struct PlsCanonical<F: Float>(/* private fields */);
Implementations§
source§impl<F: Float> PlsCanonical<F>
impl<F: Float> PlsCanonical<F>
pub fn params(n_components: usize) -> PlsCanonicalParams<F>
sourcepub fn weights(&self) -> (&Array2<F>, &Array2<F>)
pub fn weights(&self) -> (&Array2<F>, &Array2<F>)
Singular vectors of the cross-covariance matrices
sourcepub fn rotations(&self) -> (&Array2<F>, &Array2<F>)
pub fn rotations(&self) -> (&Array2<F>, &Array2<F>)
Projection matrices used to transform records and targets
sourcepub fn coefficients(&self) -> &Array2<F>
pub fn coefficients(&self) -> &Array2<F>
The coefficients of the linear model such that Y is approximated as Y = X.coefficients
sourcepub fn inverse_transform(
&self,
dataset: DatasetBase<ArrayBase<impl Data<Elem = F>, Ix2>, ArrayBase<impl Data<Elem = F>, Ix2>>
) -> DatasetBase<Array2<F>, Array2<F>>
pub fn inverse_transform( &self, dataset: DatasetBase<ArrayBase<impl Data<Elem = F>, Ix2>, ArrayBase<impl Data<Elem = F>, Ix2>> ) -> DatasetBase<Array2<F>, Array2<F>>
Transform the given dataset in the projected space back to the original space.
Trait Implementations§
source§impl<F: Float, D: Data<Elem = F>> PredictInplace<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for PlsCanonical<F>
impl<F: Float, D: Data<Elem = F>> PredictInplace<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for PlsCanonical<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for PlsCanonical<F>where
F: RefUnwindSafe,
impl<F> Send for PlsCanonical<F>
impl<F> Sync for PlsCanonical<F>
impl<F> Unpin for PlsCanonical<F>
impl<F> UnwindSafe for PlsCanonical<F>where
F: 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