pub trait PipelineNode: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn input_schema(&self) -> &[FeatureSchema];
fn output_schema(&self) -> &[FeatureSchema];
fn process(&self, batch: DataBatch) -> Result<DataBatch, MLPipelineError>;
fn validate(&self) -> Result<(), MLPipelineError>;
fn metrics(&self) -> HashMap<String, f64>;
}Expand description
Pipeline node trait for processing components
Required Methods§
Sourcefn input_schema(&self) -> &[FeatureSchema]
fn input_schema(&self) -> &[FeatureSchema]
Get input schema
Sourcefn output_schema(&self) -> &[FeatureSchema]
fn output_schema(&self) -> &[FeatureSchema]
Get output schema
Sourcefn process(&self, batch: DataBatch) -> Result<DataBatch, MLPipelineError>
fn process(&self, batch: DataBatch) -> Result<DataBatch, MLPipelineError>
Process a batch of data
Sourcefn validate(&self) -> Result<(), MLPipelineError>
fn validate(&self) -> Result<(), MLPipelineError>
Validate configuration