ApproximationQuality

Trait ApproximationQuality 

Source
pub trait ApproximationQuality:
    Send
    + Sync
    + Debug {
    // Required methods
    fn compute(
        &self,
        exact_kernel: &Array2<f64>,
        approx_kernel: &Array2<f64>,
    ) -> Result<f64, SklearsError>;
    fn name(&self) -> &str;
    fn higher_is_better(&self) -> bool;

    // Provided method
    fn acceptable_threshold(&self) -> Option<f64> { ... }
}
Expand description

Approximation quality metrics

Required Methods§

Source

fn compute( &self, exact_kernel: &Array2<f64>, approx_kernel: &Array2<f64>, ) -> Result<f64, SklearsError>

Compute approximation quality metric

Source

fn name(&self) -> &str

Get the metric name

Source

fn higher_is_better(&self) -> bool

Check if higher values indicate better quality

Provided Methods§

Source

fn acceptable_threshold(&self) -> Option<f64>

Get acceptable quality threshold

Implementors§