pub struct DecompositionPipeline { /* private fields */ }Expand description
Modular decomposition pipeline
Implementations§
Source§impl DecompositionPipeline
impl DecompositionPipeline
Sourcepub fn new(algorithm: Box<dyn DecompositionAlgorithm>) -> Self
pub fn new(algorithm: Box<dyn DecompositionAlgorithm>) -> Self
Create new decomposition pipeline
Sourcepub fn add_preprocessing(self, step: Box<dyn PreprocessingStep>) -> Self
pub fn add_preprocessing(self, step: Box<dyn PreprocessingStep>) -> Self
Add preprocessing step
Sourcepub fn add_postprocessing(self, step: Box<dyn PostprocessingStep>) -> Self
pub fn add_postprocessing(self, step: Box<dyn PostprocessingStep>) -> Self
Add postprocessing step
Sourcepub fn add_fallback(self, algorithm: Box<dyn DecompositionAlgorithm>) -> Self
pub fn add_fallback(self, algorithm: Box<dyn DecompositionAlgorithm>) -> Self
Add fallback algorithm
Sourcepub fn with_config(self, config: PipelineConfig) -> Self
pub fn with_config(self, config: PipelineConfig) -> Self
Set pipeline configuration
Sourcepub fn fit_transform(
&mut self,
data: &Array2<Float>,
params: &DecompositionParams,
) -> Result<PipelineResult>
pub fn fit_transform( &mut self, data: &Array2<Float>, params: &DecompositionParams, ) -> Result<PipelineResult>
Execute the complete pipeline
Auto Trait Implementations§
impl Freeze for DecompositionPipeline
impl !RefUnwindSafe for DecompositionPipeline
impl Send for DecompositionPipeline
impl Sync for DecompositionPipeline
impl Unpin for DecompositionPipeline
impl !UnwindSafe for DecompositionPipeline
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