pub struct BenchmarkDatasetGenerator { /* private fields */ }Expand description
Dataset generator for benchmarking
Implementations§
Source§impl BenchmarkDatasetGenerator
impl BenchmarkDatasetGenerator
Sourcepub fn noise_level(self, noise_level: f64) -> Self
pub fn noise_level(self, noise_level: f64) -> Self
Set noise level
Sourcepub fn correlation_strength(self, correlation_strength: f64) -> Self
pub fn correlation_strength(self, correlation_strength: f64) -> Self
Set correlation strength between features
Sourcepub fn random_state(self, random_state: Option<u64>) -> Self
pub fn random_state(self, random_state: Option<u64>) -> Self
Set random state
Generate a correlated multivariate dataset
Sourcepub fn generate_linear_data(&self) -> SklResult<Array2<f64>>
pub fn generate_linear_data(&self) -> SklResult<Array2<f64>>
Generate linear relationship dataset
Sourcepub fn generate_nonlinear_data(&self) -> SklResult<Array2<f64>>
pub fn generate_nonlinear_data(&self) -> SklResult<Array2<f64>>
Generate non-linear relationship dataset
Auto Trait Implementations§
impl Freeze for BenchmarkDatasetGenerator
impl RefUnwindSafe for BenchmarkDatasetGenerator
impl Send for BenchmarkDatasetGenerator
impl Sync for BenchmarkDatasetGenerator
impl Unpin for BenchmarkDatasetGenerator
impl UnwindSafe for BenchmarkDatasetGenerator
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