StreamingTransformer

Trait StreamingTransformer 

Source
pub trait StreamingTransformer {
    // Required methods
    fn partial_fit(&mut self, x: &Array2<Float>) -> Result<(), Box<dyn Error>>;
    fn transform(
        &self,
        x: &Array2<Float>,
    ) -> Result<Array2<Float>, Box<dyn Error>>;

    // Provided methods
    fn is_fitted(&self) -> bool { ... }
    fn get_stats(&self) -> StreamingStats { ... }
    fn reset(&mut self) { ... }
}
Expand description

Placeholder StreamingTransformer trait

Required Methods§

Source

fn partial_fit(&mut self, x: &Array2<Float>) -> Result<(), Box<dyn Error>>

Partial fit method

Source

fn transform(&self, x: &Array2<Float>) -> Result<Array2<Float>, Box<dyn Error>>

Transform method

Provided Methods§

Source

fn is_fitted(&self) -> bool

Check if the transformer is fitted

Source

fn get_stats(&self) -> StreamingStats

Get statistics

Source

fn reset(&mut self)

Reset the transformer

Implementors§