pub struct ModuleRegistry { /* private fields */ }Expand description
Registry for managing imputation modules
Implementations§
Source§impl ModuleRegistry
impl ModuleRegistry
pub fn new() -> Self
Sourcepub fn register_module(
&mut self,
module: Box<dyn ImputationModule>,
) -> SklResult<()>
pub fn register_module( &mut self, module: Box<dyn ImputationModule>, ) -> SklResult<()>
Register a new imputation module
Sourcepub fn register_alias(
&mut self,
alias: String,
module_name: String,
) -> SklResult<()>
pub fn register_alias( &mut self, alias: String, module_name: String, ) -> SklResult<()>
Register an alias for a module
Sourcepub fn get_module(&self, name: &str) -> Option<&dyn ImputationModule>
pub fn get_module(&self, name: &str) -> Option<&dyn ImputationModule>
Get a module by name or alias
Sourcepub fn list_modules(&self) -> Vec<&str>
pub fn list_modules(&self) -> Vec<&str>
List all available modules
Sourcepub fn find_suitable_modules(
&self,
data_info: &DataCharacteristics,
) -> Vec<&dyn ImputationModule>
pub fn find_suitable_modules( &self, data_info: &DataCharacteristics, ) -> Vec<&dyn ImputationModule>
Find suitable modules for given data characteristics
Sourcepub fn recommend_module(
&self,
data_info: &DataCharacteristics,
) -> Option<&dyn ImputationModule>
pub fn recommend_module( &self, data_info: &DataCharacteristics, ) -> Option<&dyn ImputationModule>
Get recommended module for data characteristics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleRegistry
impl !RefUnwindSafe for ModuleRegistry
impl Send for ModuleRegistry
impl Sync for ModuleRegistry
impl Unpin for ModuleRegistry
impl !UnwindSafe for ModuleRegistry
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