pub struct PlsRegression<F: Float>(/* private fields */);
Implementations§
Source§impl<F: Float> PlsRegression<F>
impl<F: Float> PlsRegression<F>
pub fn params(n_components: usize) -> PlsRegressionParams<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 PlsRegression<F>
impl<F: Float, D: Data<Elem = F>> PredictInplace<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for PlsRegression<F>
Auto Trait Implementations§
impl<F> Freeze for PlsRegression<F>
impl<F> RefUnwindSafe for PlsRegression<F>where
F: RefUnwindSafe,
impl<F> Send for PlsRegression<F>
impl<F> Sync for PlsRegression<F>
impl<F> Unpin for PlsRegression<F>
impl<F> UnwindSafe for PlsRegression<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
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