pub struct KernelSelectionResult {
pub best_kernel: Box<dyn Kernel>,
pub best_index: usize,
pub best_kernel_name: String,
pub best_score: f64,
pub all_scores: Vec<(String, f64)>,
}Expand description
Result of a kernel selection run.
Fields§
§best_kernel: Box<dyn Kernel>The winning kernel, with hyperparameters optimized against the training data.
best_index: usizeIndex of the winning kernel within the candidates slice that was passed in.
best_kernel_name: StringShort name of the winning kernel (derived from its Debug
representation), e.g. "RBF".
best_score: f64Score of the winning kernel under the configured criterion.
all_scores: Vec<(String, f64)>(name, score) for every candidate, in input order.
Trait Implementations§
Source§impl Clone for KernelSelectionResult
impl Clone for KernelSelectionResult
Auto Trait Implementations§
impl !RefUnwindSafe for KernelSelectionResult
impl !UnwindSafe for KernelSelectionResult
impl Freeze for KernelSelectionResult
impl Send for KernelSelectionResult
impl Sync for KernelSelectionResult
impl Unpin for KernelSelectionResult
impl UnsafeUnpin for KernelSelectionResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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