pub struct GridSearchResult {
pub best_alpha: f32,
pub best_score: f32,
pub alphas: Vec<f32>,
pub scores: Vec<f32>,
}Expand description
Grid search result containing best parameters and score.
Fields§
§best_alpha: f32Best alpha value found
best_score: f32Best cross-validation score
alphas: Vec<f32>All alpha values tried
scores: Vec<f32>Corresponding scores for each alpha
Implementations§
Source§impl GridSearchResult
impl GridSearchResult
Sourcepub fn best_index(&self) -> usize
pub fn best_index(&self) -> usize
Returns the index of the best alpha value.
Trait Implementations§
Source§impl Clone for GridSearchResult
impl Clone for GridSearchResult
Source§fn clone(&self) -> GridSearchResult
fn clone(&self) -> GridSearchResult
Returns a duplicate of the value. Read more
1.0.0§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 GridSearchResult
impl RefUnwindSafe for GridSearchResult
impl Send for GridSearchResult
impl Sync for GridSearchResult
impl Unpin for GridSearchResult
impl UnwindSafe for GridSearchResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more