pub struct KernelApproximationBenchmark { /* private fields */ }Expand description
Benchmarking suite for kernel approximation methods KernelApproximationBenchmark
Implementations§
Source§impl KernelApproximationBenchmark
impl KernelApproximationBenchmark
Sourcepub fn new(config: BenchmarkConfig) -> Self
pub fn new(config: BenchmarkConfig) -> Self
Create a new benchmark suite
Sourcepub fn add_dataset(&mut self, dataset: BenchmarkDataset)
pub fn add_dataset(&mut self, dataset: BenchmarkDataset)
Add a dataset to benchmark
Sourcepub fn add_synthetic_datasets(&mut self, seed: u64)
pub fn add_synthetic_datasets(&mut self, seed: u64)
Add multiple synthetic datasets
Sourcepub fn benchmark_method(
&mut self,
method: &dyn BenchmarkableKernelMethod,
) -> Result<Vec<BenchmarkResult>>
pub fn benchmark_method( &mut self, method: &dyn BenchmarkableKernelMethod, ) -> Result<Vec<BenchmarkResult>>
Run benchmark for a specific method
Sourcepub fn summarize_results(&self) -> Vec<BenchmarkSummary>
pub fn summarize_results(&self) -> Vec<BenchmarkSummary>
Generate summary statistics from benchmark results
Sourcepub fn get_results(&self) -> &[BenchmarkResult]
pub fn get_results(&self) -> &[BenchmarkResult]
Get all benchmark results
Sourcepub fn clear_results(&mut self)
pub fn clear_results(&mut self)
Clear all results
Sourcepub fn export_results_csv(&self) -> String
pub fn export_results_csv(&self) -> String
Export results to CSV format
Trait Implementations§
Source§impl Clone for KernelApproximationBenchmark
impl Clone for KernelApproximationBenchmark
Source§fn clone(&self) -> KernelApproximationBenchmark
fn clone(&self) -> KernelApproximationBenchmark
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KernelApproximationBenchmark
impl RefUnwindSafe for KernelApproximationBenchmark
impl Send for KernelApproximationBenchmark
impl Sync for KernelApproximationBenchmark
impl Unpin for KernelApproximationBenchmark
impl UnwindSafe for KernelApproximationBenchmark
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more