Struct linfa_pls::PlsRegressionParams[][src]

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

Implementations

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

pub fn max_iterations(self, max_iter: usize) -> Self[src]

Set the maximum number of iterations of the power method when algorithm=‘Nipals’. Ignored otherwise.

pub fn tolerance(self, tolerance: F) -> Self[src]

Set the tolerance used as convergence criteria in the power method: the algorithm stops whenever the squared norm of u_i - u_{i-1} is less than tol, where u corresponds to the left singular vector.

pub fn scale(self, scale: bool) -> Self[src]

Set whether to scale the dataset

pub fn algorithm(self, algorithm: Algorithm) -> Self[src]

Set the algorithm used to estimate the first singular vectors of the cross-covariance matrix. Nipals uses the power method while Svd will compute the whole SVD.

Trait Implementations

impl<F: Float, D: Data<Elem = F>> Fit<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<D, Dim<[usize; 2]>>, PlsError> for PlsRegressionParams<F>[src]

type Object = PlsRegression<F>

Auto Trait Implementations

impl<F> RefUnwindSafe for PlsRegressionParams<F> where
    F: RefUnwindSafe

impl<F> Send for PlsRegressionParams<F>

impl<F> Sync for PlsRegressionParams<F>

impl<F> Unpin for PlsRegressionParams<F> where
    F: Unpin

impl<F> UnwindSafe for PlsRegressionParams<F> where
    F: UnwindSafe

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<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>,