BenchmarkableTransformer

Trait BenchmarkableTransformer 

Source
pub trait BenchmarkableTransformer {
    // Required methods
    fn benchmark_transform(
        &self,
        data: &Array2<f64>,
    ) -> Result<(Array2<f64>, Duration)>;
    fn approximation_dimension(&self) -> usize;
    fn memory_usage_mb(&self) -> f64;
}
Expand description

Trait for fitted kernel approximation methods that can transform data

Required Methods§

Source

fn benchmark_transform( &self, data: &Array2<f64>, ) -> Result<(Array2<f64>, Duration)>

Transform data and return timing

Source

fn approximation_dimension(&self) -> usize

Get approximation dimension

Source

fn memory_usage_mb(&self) -> f64

Estimate memory usage in MB

Implementors§