Struct linfa_pls::PlsCanonical[][src]

pub struct PlsCanonical<F: Float>(_);

Implementations

impl<F: Float> PlsCanonical<F>[src]

pub fn params(n_components: usize) -> PlsCanonicalParams<F>[src]

pub fn weights(&self) -> (&Array2<F>, &Array2<F>)[src]

Singular vectors of the cross-covariance matrices

pub fn loadings(&self) -> (&Array2<F>, &Array2<F>)[src]

Loadings of records and targets

pub fn rotations(&self) -> (&Array2<F>, &Array2<F>)[src]

Projection matrices used to transform records and targets

pub fn coefficients(&self) -> &Array2<F>[src]

The coefficients of the linear model such that Y is approximated as Y = X.coefficients

pub fn inverse_transform(
    &self,
    dataset: DatasetBase<ArrayBase<impl Data<Elem = F>, Ix2>, ArrayBase<impl Data<Elem = F>, Ix2>>
) -> DatasetBase<Array2<F>, Array2<F>>
[src]

Transform the given dataset in the projected space back to the original space.

Trait Implementations

impl<F: Float, D: Data<Elem = F>> PredictRef<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for PlsCanonical<F>[src]

fn predict_ref<'a>(&'a self, x: &ArrayBase<D, Ix2>) -> Array2<F>[src]

Given an input matrix X, with shape (n_samples, n_features), predict returns the target variable according to [<Pls $name>] method learned from the training data distribution.

impl<F: Float, D: Data<Elem = F>> Transformer<DatasetBase<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<D, Dim<[usize; 2]>>>, DatasetBase<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>>> for PlsCanonical<F>[src]

fn transform(
    &self,
    dataset: DatasetBase<ArrayBase<D, Ix2>, ArrayBase<D, Ix2>>
) -> DatasetBase<Array2<F>, Array2<F>>
[src]

Apply dimension reduction to the given dataset

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, F, D, T, O> Predict<&'a ArrayBase<D, Dim<[usize; 2]>>, T> for O where
    F: Float,
    D: Data<Elem = F>,
    O: PredictRef<ArrayBase<D, Dim<[usize; 2]>>, T>, 
[src]

impl<'a, F, R, T, S, O> Predict<&'a DatasetBase<R, T>, S> for O where
    F: Float,
    R: Records<Elem = F>,
    O: PredictRef<R, S>, 
[src]

impl<F, D, T, O> Predict<ArrayBase<D, Dim<[usize; 2]>>, DatasetBase<ArrayBase<D, Dim<[usize; 2]>>, T>> for O where
    F: Float,
    D: Data<Elem = F>,
    O: PredictRef<ArrayBase<D, Dim<[usize; 2]>>, T>, 
[src]

impl<F, R, T, S, O> Predict<DatasetBase<R, T>, DatasetBase<R, S>> for O where
    F: Float,
    R: Records<Elem = F>,
    O: PredictRef<R, S>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,