ImputationModule

Trait ImputationModule 

Source
pub trait ImputationModule: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn version(&self) -> &str;
    fn can_handle(&self, data_info: &DataCharacteristics) -> bool;
    fn config_schema(&self) -> ModuleConfigSchema;
    fn create_instance(
        &self,
        config: &ModuleConfig,
    ) -> SklResult<Box<dyn ImputationInstance>>;

    // Provided methods
    fn dependencies(&self) -> Vec<&str> { ... }
    fn priority(&self) -> i32 { ... }
}
Expand description

Core trait for all imputation modules

Required Methods§

Source

fn name(&self) -> &str

Get the name of this imputation module

Source

fn version(&self) -> &str

Get the version of this module

Source

fn can_handle(&self, data_info: &DataCharacteristics) -> bool

Check if this module can handle the given data characteristics

Source

fn config_schema(&self) -> ModuleConfigSchema

Get module-specific configuration schema

Source

fn create_instance( &self, config: &ModuleConfig, ) -> SklResult<Box<dyn ImputationInstance>>

Create an instance of this module with given configuration

Provided Methods§

Source

fn dependencies(&self) -> Vec<&str>

Get module dependencies

Source

fn priority(&self) -> i32

Get module priority (higher = preferred)

Implementors§