pub struct DynamicPipeline<T> { /* private fields */ }Expand description
Dynamic pipeline that can be modified at runtime
Implementations§
Source§impl<T> DynamicPipeline<T>
impl<T> DynamicPipeline<T>
pub fn new(config: AdvancedPipelineConfig) -> Self
Sourcepub fn add_step_runtime(&self, transformer: T) -> Result<()>
pub fn add_step_runtime(&self, transformer: T) -> Result<()>
Add step at runtime
Sourcepub fn add_streaming_step_runtime<S>(
&self,
transformer: S,
name: String,
) -> Result<()>
pub fn add_streaming_step_runtime<S>( &self, transformer: S, name: String, ) -> Result<()>
Add streaming step at runtime
Sourcepub fn remove_step(&self, index: usize) -> Result<()>
pub fn remove_step(&self, index: usize) -> Result<()>
Remove step by index
Sourcepub fn partial_fit(&self, data: &Array2<f64>) -> Result<()>
pub fn partial_fit(&self, data: &Array2<f64>) -> Result<()>
Incrementally fit streaming transformers in the dynamic pipeline
Sourcepub fn get_streaming_stats(
&self,
) -> Result<Vec<(String, Option<StreamingStats>)>>
pub fn get_streaming_stats( &self, ) -> Result<Vec<(String, Option<StreamingStats>)>>
Get streaming statistics for all streaming steps
Sourcepub fn reset_streaming(&self) -> Result<()>
pub fn reset_streaming(&self) -> Result<()>
Reset all streaming transformers in the dynamic pipeline
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DynamicPipeline<T>
impl<T> RefUnwindSafe for DynamicPipeline<T>
impl<T> Send for DynamicPipeline<T>
impl<T> Sync for DynamicPipeline<T>
impl<T> Unpin for DynamicPipeline<T>
impl<T> UnwindSafe for DynamicPipeline<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