pub enum NodeComponent {
Transformer(Box<dyn PipelineStep>),
Estimator(Box<dyn PipelinePredictor>),
DataSource {
data: Option<Array2<f64>>,
targets: Option<Array1<f64>>,
},
DataSink,
ConditionalBranch {
condition: BranchCondition,
true_path: String,
false_path: String,
},
DataMerger {
merge_strategy: MergeStrategy,
},
CustomFunction {
function: Box<dyn Fn(&[NodeOutput]) -> Result<NodeOutput> + Send + Sync>,
},
}Expand description
Node component types
Variants§
Transformer(Box<dyn PipelineStep>)
Transformer component
Estimator(Box<dyn PipelinePredictor>)
Estimator component
DataSource
Data source
DataSink
Data sink/output
ConditionalBranch
Conditional branch
DataMerger
Data merger
Fields
§
merge_strategy: MergeStrategyCustomFunction
Custom function
Fields
§
function: Box<dyn Fn(&[NodeOutput]) -> Result<NodeOutput> + Send + Sync>Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeComponent
impl !RefUnwindSafe for NodeComponent
impl Send for NodeComponent
impl Sync for NodeComponent
impl Unpin for NodeComponent
impl !UnwindSafe for NodeComponent
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