pub struct MemoryOptimizedImputer { /* private fields */ }Expand description
Memory-efficient imputation strategies
Implementations§
Source§impl MemoryOptimizedImputer
impl MemoryOptimizedImputer
Sourcepub fn strategy(self, strategy: MemoryStrategy) -> Self
pub fn strategy(self, strategy: MemoryStrategy) -> Self
Set the memory optimization strategy
Sourcepub fn chunk_size(self, chunk_size: usize) -> Self
pub fn chunk_size(self, chunk_size: usize) -> Self
Set chunk size for chunked processing
Sourcepub fn use_sparse(self, use_sparse: bool) -> Self
pub fn use_sparse(self, use_sparse: bool) -> Self
Enable/disable sparse matrix optimization
Sourcepub fn use_memory_mapping(self, use_mmap: bool) -> Self
pub fn use_memory_mapping(self, use_mmap: bool) -> Self
Enable/disable memory mapping
Sourcepub fn temp_dir(self, temp_dir: PathBuf) -> Self
pub fn temp_dir(self, temp_dir: PathBuf) -> Self
Set temporary directory for memory-mapped files
Sourcepub fn estimate_memory_usage(&self, shape: (usize, usize)) -> usize
pub fn estimate_memory_usage(&self, shape: (usize, usize)) -> usize
Estimate memory requirements for a dataset
Sourcepub fn should_use_sparse(&self, array: &Array2<f64>) -> bool
pub fn should_use_sparse(&self, array: &Array2<f64>) -> bool
Check if the dataset would benefit from sparse representation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryOptimizedImputer
impl RefUnwindSafe for MemoryOptimizedImputer
impl Send for MemoryOptimizedImputer
impl Sync for MemoryOptimizedImputer
impl Unpin for MemoryOptimizedImputer
impl UnwindSafe for MemoryOptimizedImputer
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