ValidatableKernelMethod

Trait ValidatableKernelMethod 

Source
pub trait ValidatableKernelMethod {
    // Required methods
    fn method_name(&self) -> String;
    fn fit_with_dimension(
        &self,
        data: &Array2<f64>,
        n_components: usize,
    ) -> Result<Box<dyn ValidatedFittedMethod>>;
    fn fit_with_parameters(
        &self,
        data: &Array2<f64>,
        parameters: &HashMap<String, f64>,
    ) -> Result<Box<dyn ValidatedFittedMethod>>;
}
Expand description

Trait for kernel methods that can be validated

Required Methods§

Source

fn method_name(&self) -> String

Get method name

Source

fn fit_with_dimension( &self, data: &Array2<f64>, n_components: usize, ) -> Result<Box<dyn ValidatedFittedMethod>>

Fit with specific approximation dimension

Source

fn fit_with_parameters( &self, data: &Array2<f64>, parameters: &HashMap<String, f64>, ) -> Result<Box<dyn ValidatedFittedMethod>>

Fit with specific parameters

Implementors§