pub struct GradientMultiKernelLearner { /* private fields */ }Expand description
Gradient-based multi-kernel learning
Implementations§
Source§impl GradientMultiKernelLearner
impl GradientMultiKernelLearner
Sourcepub fn new(n_kernels: usize, n_parameters_per_kernel: usize) -> Self
pub fn new(n_kernels: usize, n_parameters_per_kernel: usize) -> Self
Create a new gradient-based multi-kernel learner
Sourcepub fn optimize(
&mut self,
x: &Array2<f64>,
y: Option<&Array1<f64>>,
) -> Result<()>
pub fn optimize( &mut self, x: &Array2<f64>, y: Option<&Array1<f64>>, ) -> Result<()>
Optimize all kernels and combination weights
Sourcepub fn get_all_parameters(&self) -> Vec<&Array1<f64>> ⓘ
pub fn get_all_parameters(&self) -> Vec<&Array1<f64>> ⓘ
Get optimized parameters for all kernels
Sourcepub fn get_combination_weights(&self) -> &Array1<f64>
pub fn get_combination_weights(&self) -> &Array1<f64>
Get combination weights
Auto Trait Implementations§
impl Freeze for GradientMultiKernelLearner
impl RefUnwindSafe for GradientMultiKernelLearner
impl Send for GradientMultiKernelLearner
impl Sync for GradientMultiKernelLearner
impl Unpin for GradientMultiKernelLearner
impl UnwindSafe for GradientMultiKernelLearner
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