pub struct TypeSafeConfig<ProblemType> {
pub fit_intercept: bool,
pub alpha: Float,
pub max_iter: usize,
pub tolerance: Float,
/* private fields */
}Expand description
Type-safe configuration for linear models
Fields§
§fit_intercept: boolWhether to fit intercept
alpha: FloatRegularization strength
max_iter: usizeMaximum iterations
tolerance: FloatConvergence tolerance
Implementations§
Source§impl<ProblemType> TypeSafeConfig<ProblemType>
impl<ProblemType> TypeSafeConfig<ProblemType>
Sourcepub fn fit_intercept(self, fit_intercept: bool) -> Self
pub fn fit_intercept(self, fit_intercept: bool) -> Self
Set whether to fit intercept
Trait Implementations§
Source§impl<ProblemType: Clone> Clone for TypeSafeConfig<ProblemType>
impl<ProblemType: Clone> Clone for TypeSafeConfig<ProblemType>
Source§fn clone(&self) -> TypeSafeConfig<ProblemType>
fn clone(&self) -> TypeSafeConfig<ProblemType>
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<ProblemType: Debug> Debug for TypeSafeConfig<ProblemType>
impl<ProblemType: Debug> Debug for TypeSafeConfig<ProblemType>
Auto Trait Implementations§
impl<ProblemType> Freeze for TypeSafeConfig<ProblemType>
impl<ProblemType> RefUnwindSafe for TypeSafeConfig<ProblemType>where
ProblemType: RefUnwindSafe,
impl<ProblemType> Send for TypeSafeConfig<ProblemType>where
ProblemType: Send,
impl<ProblemType> Sync for TypeSafeConfig<ProblemType>where
ProblemType: Sync,
impl<ProblemType> Unpin for TypeSafeConfig<ProblemType>where
ProblemType: Unpin,
impl<ProblemType> UnwindSafe for TypeSafeConfig<ProblemType>where
ProblemType: 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