pub struct RidgeFit {
pub lambda: f64,
pub intercept: f64,
pub coefficients: Vec<f64>,
pub fitted_values: Vec<f64>,
pub residuals: Vec<f64>,
pub df: f64,
pub r_squared: f64,
pub adj_r_squared: f64,
pub mse: f64,
pub rmse: f64,
pub mae: f64,
}Expand description
Result of a ridge regression fit.
§Fields
lambda- The lambda value used for fittingintercept- Intercept coefficient (on original scale)coefficients- Slope coefficients (on original scale)fitted_values- In-sample predictionsresiduals- Residuals (y - fitted_values)df- Effective degrees of freedom (trace of H = X(X’X + λI)^(-1)X’)r_squared- R² (coefficient of determination)adj_r_squared- Adjusted R² (using effective df)mse- Mean squared errorrmse- Root mean squared errormae- Mean absolute errorstandardization_info- Information about standardization applied
Fields§
§lambda: f64Lambda value used for fitting
intercept: f64Intercept on original scale
coefficients: Vec<f64>Slope coefficients on original scale
fitted_values: Vec<f64>Fitted values
residuals: Vec<f64>Residuals
df: f64Effective degrees of freedom
r_squared: f64R² (coefficient of determination)
adj_r_squared: f64Adjusted R² (penalized for effective df)
mse: f64Mean squared error
rmse: f64Root mean squared error
mae: f64Mean absolute error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RidgeFit
impl RefUnwindSafe for RidgeFit
impl Send for RidgeFit
impl Sync for RidgeFit
impl Unpin for RidgeFit
impl UnwindSafe for RidgeFit
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