pub struct ElasticNetCV {
pub fit: ElasticNet,
pub alphas: Vec<f64>,
pub l1_ratios: Vec<f64>,
pub mean_cv_mse: Vec<Vec<f64>>,
pub best_alpha: f64,
pub best_l1_ratio: f64,
}Expand description
Cross-validated ElasticNet with a 2-D (alpha, l1_ratio) grid.
Fields§
§fit: ElasticNetFitted ElasticNet at the best (α, ρ).
alphas: Vec<f64>α grid searched.
l1_ratios: Vec<f64>l1_ratio grid searched.
mean_cv_mse: Vec<Vec<f64>>Mean CV MSE per (alpha_idx, l1_ratio_idx) — row-major.
best_alpha: f64Best (alpha, l1_ratio) pair.
best_l1_ratio: f64See Self::best_alpha.
Implementations§
Source§impl ElasticNetCV
impl ElasticNetCV
Trait Implementations§
Source§impl Clone for ElasticNetCV
impl Clone for ElasticNetCV
Auto Trait Implementations§
impl Freeze for ElasticNetCV
impl RefUnwindSafe for ElasticNetCV
impl Send for ElasticNetCV
impl Sync for ElasticNetCV
impl Unpin for ElasticNetCV
impl UnsafeUnpin for ElasticNetCV
impl UnwindSafe for ElasticNetCV
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