pub struct AlgorithmBenchmark { /* private fields */ }Expand description
Algorithm benchmark definition
Implementations§
Source§impl AlgorithmBenchmark
impl AlgorithmBenchmark
Sourcepub fn new(
algorithm_type: AlgorithmType,
run_function: Box<dyn Fn(BenchmarkDataset) -> Result<f64, SklearsError> + Send + Sync>,
description: String,
) -> AlgorithmBenchmark
pub fn new( algorithm_type: AlgorithmType, run_function: Box<dyn Fn(BenchmarkDataset) -> Result<f64, SklearsError> + Send + Sync>, description: String, ) -> AlgorithmBenchmark
Create a new algorithm benchmark
Sourcepub fn linear_regression() -> AlgorithmBenchmark
pub fn linear_regression() -> AlgorithmBenchmark
Create a linear regression benchmark
Sourcepub fn random_forest() -> AlgorithmBenchmark
pub fn random_forest() -> AlgorithmBenchmark
Create a random forest benchmark
Sourcepub fn k_means() -> AlgorithmBenchmark
pub fn k_means() -> AlgorithmBenchmark
Create a k-means clustering benchmark
Sourcepub fn algorithm_type(&self) -> AlgorithmType
pub fn algorithm_type(&self) -> AlgorithmType
Get the algorithm type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlgorithmBenchmark
impl !RefUnwindSafe for AlgorithmBenchmark
impl Send for AlgorithmBenchmark
impl Sync for AlgorithmBenchmark
impl Unpin for AlgorithmBenchmark
impl !UnwindSafe for AlgorithmBenchmark
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> 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