pub struct StandardizationInfo {
pub x_mean: Vec<f64>,
pub x_scale: Vec<f64>,
pub y_mean: f64,
pub y_scale: Option<f64>,
pub intercept: bool,
pub standardized_x: bool,
pub standardized_y: bool,
}Expand description
Information stored during standardization, used to unstandardize coefficients.
This struct captures all the information needed to transform coefficients from the standardized space back to the original data scale.
§Fields
x_mean- Mean of each predictor column (length p)x_scale- Scale factor for each predictor column (length p)y_mean- Mean of response variabley_scale- Scale factor for response (optional, used for lambda path)intercept- Whether an intercept term was includedstandardized_x- Whether X was standardizedstandardized_y- Whether y was standardized
Fields§
§x_mean: Vec<f64>Mean of each predictor column
x_scale: Vec<f64>Scale factor for each predictor column
y_mean: f64Mean of response variable
y_scale: Option<f64>Scale factor for response (for lambda path construction)
intercept: boolWhether an intercept was included
standardized_x: boolWhether X was standardized
standardized_y: boolWhether y was standardized
Trait Implementations§
Source§impl Clone for StandardizationInfo
impl Clone for StandardizationInfo
Source§fn clone(&self) -> StandardizationInfo
fn clone(&self) -> StandardizationInfo
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 moreAuto Trait Implementations§
impl Freeze for StandardizationInfo
impl RefUnwindSafe for StandardizationInfo
impl Send for StandardizationInfo
impl Sync for StandardizationInfo
impl Unpin for StandardizationInfo
impl UnwindSafe for StandardizationInfo
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