KernelMethod

Trait KernelMethod 

Source
pub trait KernelMethod:
    Send
    + Sync
    + Debug {
    // Required methods
    fn name(&self) -> &str;
    fn n_output_features(&self) -> Option<usize>;
    fn complexity(&self) -> Complexity;
    fn error_bound(&self) -> Option<ErrorBound>;
    fn supports_kernel(&self, kernel_type: KernelType) -> bool;
    fn supported_kernels(&self) -> Vec<KernelType>;
}
Expand description

Core trait for kernel approximation methods

Required Methods§

Source

fn name(&self) -> &str

Get the approximation method name

Source

fn n_output_features(&self) -> Option<usize>

Get the number of output features (if known before fitting)

Source

fn complexity(&self) -> Complexity

Get approximation complexity (e.g., O(n*d), O(n^2))

Source

fn error_bound(&self) -> Option<ErrorBound>

Get theoretical error bounds (if available)

Source

fn supports_kernel(&self, kernel_type: KernelType) -> bool

Check if this method supports the given kernel type

Source

fn supported_kernels(&self) -> Vec<KernelType>

Get supported kernel types

Implementors§