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§
Sourcefn n_output_features(&self) -> Option<usize>
fn n_output_features(&self) -> Option<usize>
Get the number of output features (if known before fitting)
Sourcefn complexity(&self) -> Complexity
fn complexity(&self) -> Complexity
Get approximation complexity (e.g., O(n*d), O(n^2))
Sourcefn error_bound(&self) -> Option<ErrorBound>
fn error_bound(&self) -> Option<ErrorBound>
Get theoretical error bounds (if available)
Sourcefn supports_kernel(&self, kernel_type: KernelType) -> bool
fn supports_kernel(&self, kernel_type: KernelType) -> bool
Check if this method supports the given kernel type
Sourcefn supported_kernels(&self) -> Vec<KernelType>
fn supported_kernels(&self) -> Vec<KernelType>
Get supported kernel types