pub struct PlsRegressionParams<F: Float>(/* private fields */);
Implementations§
Source§impl<F: Float> PlsRegressionParams<F>
impl<F: Float> PlsRegressionParams<F>
Sourcepub fn max_iterations(self, max_iter: usize) -> Self
pub fn max_iterations(self, max_iter: usize) -> Self
Set the maximum number of iterations of the power method when algorithm=‘Nipals’. Ignored otherwise.
Trait Implementations§
Source§impl<F: Float> ParamGuard for PlsRegressionParams<F>
impl<F: Float> ParamGuard for PlsRegressionParams<F>
Source§type Checked = PlsRegressionValidParams<F>
type Checked = PlsRegressionValidParams<F>
The checked hyperparameters
Source§fn check_ref(&self) -> Result<&Self::Checked, Self::Error>
fn check_ref(&self) -> Result<&Self::Checked, Self::Error>
Checks the hyperparameters and returns a reference to the checked hyperparameters if
successful
Source§fn check(self) -> Result<Self::Checked, Self::Error>
fn check(self) -> Result<Self::Checked, Self::Error>
Checks the hyperparameters and returns the checked hyperparameters if successful
Source§fn check_unwrap(self) -> Self::Checkedwhere
Self: Sized,
fn check_unwrap(self) -> Self::Checkedwhere
Self: Sized,
Calls
check()
and unwraps the resultAuto Trait Implementations§
impl<F> Freeze for PlsRegressionParams<F>where
F: Freeze,
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>
impl<F> UnwindSafe for PlsRegressionParams<F>where
F: UnwindSafe,
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