pub struct FluentPipelineBuilder<State = BuilderEmpty> { /* private fields */ }Expand description
Fluent pipeline builder with advanced chaining capabilities
Implementations§
Source§impl FluentPipelineBuilder<BuilderEmpty>
impl FluentPipelineBuilder<BuilderEmpty>
Sourcepub fn with_preset(preset: ConfigurationPreset) -> Self
pub fn with_preset(preset: ConfigurationPreset) -> Self
Create builder with a configuration preset
Sourcepub fn data_science_preset() -> Self
pub fn data_science_preset() -> Self
Apply a common preset for data science workflows
Sourcepub fn high_performance_preset() -> Self
pub fn high_performance_preset() -> Self
Apply a preset for high-performance computing
Sourcepub fn development_preset() -> Self
pub fn development_preset() -> Self
Apply a preset for development and debugging
Source§impl<State> FluentPipelineBuilder<State>
impl<State> FluentPipelineBuilder<State>
Sourcepub fn parallel(self, config: ParallelConfig) -> Self
pub fn parallel(self, config: ParallelConfig) -> Self
Configure parallel execution
Sourcepub fn simd(self, config: SimdConfig) -> Self
pub fn simd(self, config: SimdConfig) -> Self
Configure SIMD optimizations
Sourcepub fn execution_strategy(self, strategy: ParallelExecutionStrategy) -> Self
pub fn execution_strategy(self, strategy: ParallelExecutionStrategy) -> Self
Set execution strategy
Sourcepub fn memory(self, config: MemoryConfiguration) -> Self
pub fn memory(self, config: MemoryConfiguration) -> Self
Configure memory settings
Sourcepub fn caching(self, config: CachingConfiguration) -> Self
pub fn caching(self, config: CachingConfiguration) -> Self
Configure caching
Sourcepub fn validation(self, config: ValidationConfiguration) -> Self
pub fn validation(self, config: ValidationConfiguration) -> Self
Configure validation
Sourcepub fn debug(self, config: DebugConfiguration) -> Self
pub fn debug(self, config: DebugConfiguration) -> Self
Configure debug settings
Sourcepub fn with_validation_rule(self, rule: ValidationRule) -> Self
pub fn with_validation_rule(self, rule: ValidationRule) -> Self
Add a validation rule
Sourcepub fn memory_optimized(self) -> Self
pub fn memory_optimized(self) -> Self
Enable memory optimization
Sourcepub fn high_performance(self) -> Self
pub fn high_performance(self) -> Self
Enable high performance mode
Sourcepub fn development_mode(self) -> Self
pub fn development_mode(self) -> Self
Enable development mode (with debugging and validation)
Source§impl FluentPipelineBuilder<BuilderEmpty>
impl FluentPipelineBuilder<BuilderEmpty>
Sourcepub fn step<S: Into<String>>(
self,
name: S,
step: Box<dyn PipelineStep>,
) -> FluentPipelineBuilder<BuilderWithSteps>
pub fn step<S: Into<String>>( self, name: S, step: Box<dyn PipelineStep>, ) -> FluentPipelineBuilder<BuilderWithSteps>
Add the first step to the pipeline
Sourcepub fn preprocessing(self) -> PreprocessingChain
pub fn preprocessing(self) -> PreprocessingChain
Start with a preprocessing chain
Sourcepub fn feature_engineering(self) -> FeatureEngineeringChain
pub fn feature_engineering(self) -> FeatureEngineeringChain
Start with a feature engineering chain
Source§impl FluentPipelineBuilder<BuilderWithSteps>
impl FluentPipelineBuilder<BuilderWithSteps>
Sourcepub fn step<S: Into<String>>(self, name: S, step: Box<dyn PipelineStep>) -> Self
pub fn step<S: Into<String>>(self, name: S, step: Box<dyn PipelineStep>) -> Self
Add another step to the pipeline
Sourcepub fn estimator(
self,
estimator: Box<dyn PipelinePredictor>,
) -> FluentPipelineBuilder<BuilderWithEstimator>
pub fn estimator( self, estimator: Box<dyn PipelinePredictor>, ) -> FluentPipelineBuilder<BuilderWithEstimator>
Add the final estimator
Sourcepub fn feature_union<F>(self, union_fn: F) -> Self
pub fn feature_union<F>(self, union_fn: F) -> Self
Create a feature union at this point
Sourcepub fn when<F>(self, condition: F, then_step: Box<dyn PipelineStep>) -> Self
pub fn when<F>(self, condition: F, then_step: Box<dyn PipelineStep>) -> Self
Add conditional execution
Source§impl FluentPipelineBuilder<BuilderWithEstimator>
impl FluentPipelineBuilder<BuilderWithEstimator>
Sourcepub fn finalize(self) -> FluentPipelineBuilder<BuilderComplete>
pub fn finalize(self) -> FluentPipelineBuilder<BuilderComplete>
Finalize the pipeline configuration
Source§impl FluentPipelineBuilder<BuilderComplete>
impl FluentPipelineBuilder<BuilderComplete>
Sourcepub fn build_and_fit(
self,
x: &ArrayView2<'_, Float>,
y: &Option<&ArrayView1<'_, Float>>,
) -> SklResult<Pipeline<PipelineTrained>>
pub fn build_and_fit( self, x: &ArrayView2<'_, Float>, y: &Option<&ArrayView1<'_, Float>>, ) -> SklResult<Pipeline<PipelineTrained>>
Build and immediately fit the pipeline
Trait Implementations§
Source§impl<State: Debug> Debug for FluentPipelineBuilder<State>
impl<State: Debug> Debug for FluentPipelineBuilder<State>
Source§impl Default for FluentPipelineBuilder<BuilderEmpty>
impl Default for FluentPipelineBuilder<BuilderEmpty>
Auto Trait Implementations§
impl<State> Freeze for FluentPipelineBuilder<State>
impl<State = BuilderEmpty> !RefUnwindSafe for FluentPipelineBuilder<State>
impl<State = BuilderEmpty> !Send for FluentPipelineBuilder<State>
impl<State = BuilderEmpty> !Sync for FluentPipelineBuilder<State>
impl<State> Unpin for FluentPipelineBuilder<State>where
State: Unpin,
impl<State = BuilderEmpty> !UnwindSafe for FluentPipelineBuilder<State>
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
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>
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>
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