pub struct StandardizeOptions {
pub intercept: bool,
pub standardize_x: bool,
pub standardize_y: bool,
}Expand description
Options for standardization.
§Fields
intercept- Whether to include/center an intercept (default: true)standardize_x- Whether to standardize predictors (default: true)standardize_y- Whether to standardize response (default: false)
§Note
Setting standardize_y to true is mainly useful when you want to match
glmnet’s lambda sequence exactly. For single-lambda fits, you typically
don’t need to standardize y.
Fields§
§intercept: boolWhether to include an intercept (and center X)
standardize_x: boolWhether to standardize predictor columns
standardize_y: boolWhether to standardize the response variable
Trait Implementations§
Source§impl Clone for StandardizeOptions
impl Clone for StandardizeOptions
Source§fn clone(&self) -> StandardizeOptions
fn clone(&self) -> StandardizeOptions
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 StandardizeOptions
impl Debug for StandardizeOptions
Auto Trait Implementations§
impl Freeze for StandardizeOptions
impl RefUnwindSafe for StandardizeOptions
impl Send for StandardizeOptions
impl Sync for StandardizeOptions
impl Unpin for StandardizeOptions
impl UnwindSafe for StandardizeOptions
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