#[non_exhaustive]pub struct GridSearchResult<P> {
pub best: P,
pub best_score: f64,
pub scores: Vec<(P, f64)>,
}Expand description
The outcome of a grid search.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.best: P§best_score: f64§scores: Vec<(P, f64)>Every candidate with its score, in the order given.
Trait Implementations§
Source§impl<P: Clone> Clone for GridSearchResult<P>
impl<P: Clone> Clone for GridSearchResult<P>
Auto Trait Implementations§
impl<P> Freeze for GridSearchResult<P>where
P: Freeze,
impl<P> RefUnwindSafe for GridSearchResult<P>where
P: RefUnwindSafe,
impl<P> Send for GridSearchResult<P>where
P: Send,
impl<P> Sync for GridSearchResult<P>where
P: Sync,
impl<P> Unpin for GridSearchResult<P>where
P: Unpin,
impl<P> UnsafeUnpin for GridSearchResult<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for GridSearchResult<P>where
P: UnwindSafe,
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