pub struct BiasVarianceAnalyzer { /* private fields */ }Expand description
Bias-variance decomposition analyzer
Implementations§
Source§impl BiasVarianceAnalyzer
impl BiasVarianceAnalyzer
Sourcepub fn with_config(config: BiasVarianceConfig) -> Self
pub fn with_config(config: BiasVarianceConfig) -> Self
Create a new bias-variance analyzer with custom configuration
Sourcepub fn n_bootstrap(self, n_bootstrap: usize) -> Self
pub fn n_bootstrap(self, n_bootstrap: usize) -> Self
Set the number of bootstrap samples
Sourcepub fn sample_fraction(self, fraction: f64) -> Self
pub fn sample_fraction(self, fraction: f64) -> Self
Set the sample fraction for bootstrap sampling
Sourcepub fn random_seed(self, seed: u64) -> Self
pub fn random_seed(self, seed: u64) -> Self
Set random seed for reproducibility
Sourcepub fn with_replacement(self, with_replacement: bool) -> Self
pub fn with_replacement(self, with_replacement: bool) -> Self
Enable or disable sampling with replacement
Sourcepub fn compute_sample_wise(self, compute: bool) -> Self
pub fn compute_sample_wise(self, compute: bool) -> Self
Enable or disable sample-wise computation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BiasVarianceAnalyzer
impl RefUnwindSafe for BiasVarianceAnalyzer
impl Send for BiasVarianceAnalyzer
impl Sync for BiasVarianceAnalyzer
impl Unpin for BiasVarianceAnalyzer
impl UnwindSafe for BiasVarianceAnalyzer
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