BenchmarkableKernelMethod

Trait BenchmarkableKernelMethod 

Source
pub trait BenchmarkableKernelMethod {
    // Required methods
    fn method_name(&self) -> String;
    fn benchmark_fit(
        &self,
        data: &Array2<f64>,
        target: Option<&Array1<f64>>,
    ) -> Result<(Box<dyn BenchmarkableTransformer>, Duration)>;
    fn clone_method(&self) -> Box<dyn BenchmarkableKernelMethod>;
}
Expand description

Trait for benchmarkable kernel approximation methods

Required Methods§

Source

fn method_name(&self) -> String

Get the name of the method

Source

fn benchmark_fit( &self, data: &Array2<f64>, target: Option<&Array1<f64>>, ) -> Result<(Box<dyn BenchmarkableTransformer>, Duration)>

Fit the approximation method and return timing

Source

fn clone_method(&self) -> Box<dyn BenchmarkableKernelMethod>

Clone the method for multiple repetitions

Implementors§