pub trait PreprocessingStep: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn process(&mut self, data: &Array2<Float>) -> Result<Array2<Float>>;
fn is_fitted(&self) -> bool;
fn clone_step(&self) -> Box<dyn PreprocessingStep>;
// Provided method
fn inverse_process(&self, _data: &Array2<Float>) -> Result<Array2<Float>> { ... }
}Expand description
Trait for preprocessing steps
Required Methods§
Sourcefn clone_step(&self) -> Box<dyn PreprocessingStep>
fn clone_step(&self) -> Box<dyn PreprocessingStep>
Clone the step