pub struct CompositeKernelMethod { /* private fields */ }Expand description
Composable kernel that combines multiple kernel methods
Implementations§
Source§impl CompositeKernelMethod
impl CompositeKernelMethod
Sourcepub fn new(strategy: CombinationStrategy) -> Self
pub fn new(strategy: CombinationStrategy) -> Self
Create a new composite kernel method
Sourcepub fn add_method(&mut self, method: Box<dyn KernelMethod>)
pub fn add_method(&mut self, method: Box<dyn KernelMethod>)
Add a kernel method to the composition
Sourcepub fn strategy(&self) -> CombinationStrategy
pub fn strategy(&self) -> CombinationStrategy
Get the combination strategy
Trait Implementations§
Source§impl Debug for CompositeKernelMethod
impl Debug for CompositeKernelMethod
Source§impl KernelMethod for CompositeKernelMethod
impl KernelMethod for CompositeKernelMethod
Source§fn n_output_features(&self) -> Option<usize>
fn n_output_features(&self) -> Option<usize>
Get the number of output features (if known before fitting)
Source§fn complexity(&self) -> Complexity
fn complexity(&self) -> Complexity
Get approximation complexity (e.g., O(n*d), O(n^2))
Source§fn error_bound(&self) -> Option<ErrorBound>
fn error_bound(&self) -> Option<ErrorBound>
Get theoretical error bounds (if available)
Source§fn supports_kernel(&self, kernel_type: KernelType) -> bool
fn supports_kernel(&self, kernel_type: KernelType) -> bool
Check if this method supports the given kernel type
Source§fn supported_kernels(&self) -> Vec<KernelType>
fn supported_kernels(&self) -> Vec<KernelType>
Get supported kernel types
Auto Trait Implementations§
impl Freeze for CompositeKernelMethod
impl !RefUnwindSafe for CompositeKernelMethod
impl Send for CompositeKernelMethod
impl Sync for CompositeKernelMethod
impl Unpin for CompositeKernelMethod
impl !UnwindSafe for CompositeKernelMethod
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