pub struct MemoryEfficientCrossValidator<T, L> { /* private fields */ }Expand description
Memory-efficient cross-validation evaluator
Implementations§
Source§impl<T, L> MemoryEfficientCrossValidator<T, L>
impl<T, L> MemoryEfficientCrossValidator<T, L>
Sourcepub fn new(config: MemoryEfficientConfig, n_folds: usize) -> Self
pub fn new(config: MemoryEfficientConfig, n_folds: usize) -> Self
Create a new memory-efficient cross-validator
Sourcepub fn setup_folds(&mut self, n_samples: usize, n_folds: usize)
pub fn setup_folds(&mut self, n_samples: usize, n_folds: usize)
Set up fold indices for cross-validation
Sourcepub fn streaming_evaluate<F, R>(
&mut self,
train_func: F,
) -> Result<StreamingEvaluationResult<R>, MemoryError>
pub fn streaming_evaluate<F, R>( &mut self, train_func: F, ) -> Result<StreamingEvaluationResult<R>, MemoryError>
Perform streaming cross-validation evaluation
Auto Trait Implementations§
impl<T, L> Freeze for MemoryEfficientCrossValidator<T, L>
impl<T, L> RefUnwindSafe for MemoryEfficientCrossValidator<T, L>where
T: RefUnwindSafe,
L: RefUnwindSafe,
impl<T, L> Send for MemoryEfficientCrossValidator<T, L>
impl<T, L> Sync for MemoryEfficientCrossValidator<T, L>
impl<T, L> Unpin for MemoryEfficientCrossValidator<T, L>
impl<T, L> UnwindSafe for MemoryEfficientCrossValidator<T, L>where
T: UnwindSafe,
L: UnwindSafe,
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