pub struct AdvancedPipeline<T> { /* private fields */ }Expand description
Advanced pipeline with caching and conditional steps
Implementations§
Source§impl<T> AdvancedPipeline<T>
impl<T> AdvancedPipeline<T>
pub fn new(config: AdvancedPipelineConfig) -> Self
Sourcepub fn add_conditional_step(self, config: ConditionalStepConfig<T>) -> Self
pub fn add_conditional_step(self, config: ConditionalStepConfig<T>) -> Self
Add a conditional step
Sourcepub fn add_parallel_branches(
self,
config: ParallelBranchConfig<T>,
) -> Result<Self>
pub fn add_parallel_branches( self, config: ParallelBranchConfig<T>, ) -> Result<Self>
Add parallel branches
Sourcepub fn add_cached_step(self, transformer: T, cache_key_prefix: String) -> Self
pub fn add_cached_step(self, transformer: T, cache_key_prefix: String) -> Self
Add cached transformation step
Sourcepub fn add_streaming_step<S>(self, transformer: S, name: String) -> Self
pub fn add_streaming_step<S>(self, transformer: S, name: String) -> Self
Add a streaming transformation step
Sourcepub fn add_pca_step(self, _pca: PCA) -> Self
pub fn add_pca_step(self, _pca: PCA) -> Self
Add a dimensionality reduction step
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Get cache statistics
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Clear pipeline cache
Sourcepub fn partial_fit(&mut self, data: &Array2<f64>) -> Result<()>
pub fn partial_fit(&mut self, data: &Array2<f64>) -> Result<()>
Incrementally fit streaming transformers in the pipeline
Sourcepub fn get_streaming_stats(&self) -> Vec<(String, Option<StreamingStats>)>
pub fn get_streaming_stats(&self) -> Vec<(String, Option<StreamingStats>)>
Get streaming statistics for all streaming steps
Sourcepub fn reset_streaming(&mut self)
pub fn reset_streaming(&mut self)
Reset all streaming transformers in the pipeline
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for AdvancedPipeline<T>
impl<T> !RefUnwindSafe for AdvancedPipeline<T>
impl<T> Send for AdvancedPipeline<T>where
T: Send,
impl<T> Sync for AdvancedPipeline<T>where
T: Sync,
impl<T> Unpin for AdvancedPipeline<T>where
T: Unpin,
impl<T> !UnwindSafe for AdvancedPipeline<T>
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