Struct linfa_pls::PlsRegressionParams
source · 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>
§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> 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