pub struct LassoFitOptions {
pub lambda: f64,
pub intercept: bool,
pub standardize: bool,
pub max_iter: usize,
pub tol: f64,
pub penalty_factor: Option<Vec<f64>>,
}Expand description
Options for lasso regression fitting.
§Fields
lambda- Regularization strength (single value)intercept- Whether to include an intercept term (default: true)standardize- Whether to standardize predictors (default: true)max_iter- Maximum iterations per lambda (default: 1000)tol- Convergence tolerance (default: 1e-7)penalty_factor- Optional per-feature penalty factors
Fields§
§lambda: f64Regularization strength (must be >= 0)
intercept: boolWhether to include an intercept
standardize: boolWhether to standardize predictors
max_iter: usizeMaximum coordinate descent iterations
tol: f64Convergence tolerance on coefficient changes
penalty_factor: Option<Vec<f64>>Per-feature penalty factors (optional)
Trait Implementations§
Source§impl Clone for LassoFitOptions
impl Clone for LassoFitOptions
Source§fn clone(&self) -> LassoFitOptions
fn clone(&self) -> LassoFitOptions
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 Debug for LassoFitOptions
impl Debug for LassoFitOptions
Auto Trait Implementations§
impl Freeze for LassoFitOptions
impl RefUnwindSafe for LassoFitOptions
impl Send for LassoFitOptions
impl Sync for LassoFitOptions
impl Unpin for LassoFitOptions
impl UnwindSafe for LassoFitOptions
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