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§
Sourcefn method_name(&self) -> String
fn method_name(&self) -> String
Get the name of the method
Sourcefn benchmark_fit(
&self,
data: &Array2<f64>,
target: Option<&Array1<f64>>,
) -> Result<(Box<dyn BenchmarkableTransformer>, Duration)>
fn benchmark_fit( &self, data: &Array2<f64>, target: Option<&Array1<f64>>, ) -> Result<(Box<dyn BenchmarkableTransformer>, Duration)>
Fit the approximation method and return timing
Sourcefn clone_method(&self) -> Box<dyn BenchmarkableKernelMethod>
fn clone_method(&self) -> Box<dyn BenchmarkableKernelMethod>
Clone the method for multiple repetitions