pub struct KernelAlignment;Expand description
Kernel alignment computation for measuring similarity between kernels.
Kernel alignment measures how well two kernels agree on a dataset. It’s useful for kernel selection and meta-learning.
§Formula
A(K1, K2) = <K1, K2>_F / (||K1||_F * ||K2||_F)Where <·,·>_F is the Frobenius inner product and ||·||_F is the Frobenius norm.
Implementations§
Auto Trait Implementations§
impl Freeze for KernelAlignment
impl RefUnwindSafe for KernelAlignment
impl Send for KernelAlignment
impl Sync for KernelAlignment
impl Unpin for KernelAlignment
impl UnwindSafe for KernelAlignment
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
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