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§
Sourcefn can_handle(&self, data_info: &DataCharacteristics) -> bool
fn can_handle(&self, data_info: &DataCharacteristics) -> bool
Check if this module can handle the given data characteristics
Sourcefn config_schema(&self) -> ModuleConfigSchema
fn config_schema(&self) -> ModuleConfigSchema
Get module-specific configuration schema
Sourcefn create_instance(
&self,
config: &ModuleConfig,
) -> SklResult<Box<dyn ImputationInstance>>
fn create_instance( &self, config: &ModuleConfig, ) -> SklResult<Box<dyn ImputationInstance>>
Create an instance of this module with given configuration
Provided Methods§
Sourcefn dependencies(&self) -> Vec<&str>
fn dependencies(&self) -> Vec<&str>
Get module dependencies