pub struct TweedieRegressorParams<F>(/* private fields */);Expand description
The set of hyperparameters that can be specified for the execution of the Tweedie Regressor.
Implementations§
Source§impl<F: Float> TweedieRegressorParams<F>
impl<F: Float> TweedieRegressorParams<F>
pub fn new() -> Self
Sourcepub fn alpha(self, alpha: F) -> Self
pub fn alpha(self, alpha: F) -> Self
Constant that multiplies with the penalty term and thus determines the
regularization strenght. alpha set to 0 is equivalent to unpenalized GLM.
Sourcepub fn fit_intercept(self, fit_intercept: bool) -> Self
pub fn fit_intercept(self, fit_intercept: bool) -> Self
Specifies whether a bias or intercept should be added to the model
Trait Implementations§
Source§impl<F: Clone> Clone for TweedieRegressorParams<F>
impl<F: Clone> Clone for TweedieRegressorParams<F>
Source§fn clone(&self) -> TweedieRegressorParams<F>
fn clone(&self) -> TweedieRegressorParams<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug> Debug for TweedieRegressorParams<F>
impl<F: Debug> Debug for TweedieRegressorParams<F>
Source§impl<F: Float> Default for TweedieRegressorParams<F>
impl<F: Float> Default for TweedieRegressorParams<F>
Source§impl<F: Float> ParamGuard for TweedieRegressorParams<F>
impl<F: Float> ParamGuard for TweedieRegressorParams<F>
Source§type Checked = TweedieRegressorValidParams<F>
type Checked = TweedieRegressorValidParams<F>
The checked hyperparameters
Source§type Error = LinearError<F>
type Error = LinearError<F>
Error type resulting from failed hyperparameter checking
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 resultSource§impl<F: PartialEq> PartialEq for TweedieRegressorParams<F>
impl<F: PartialEq> PartialEq for TweedieRegressorParams<F>
impl<F> StructuralPartialEq for TweedieRegressorParams<F>
Auto Trait Implementations§
impl<F> Freeze for TweedieRegressorParams<F>where
F: Freeze,
impl<F> RefUnwindSafe for TweedieRegressorParams<F>where
F: RefUnwindSafe,
impl<F> Send for TweedieRegressorParams<F>where
F: Send,
impl<F> Sync for TweedieRegressorParams<F>where
F: Sync,
impl<F> Unpin for TweedieRegressorParams<F>where
F: Unpin,
impl<F> UnwindSafe for TweedieRegressorParams<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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