nirs4all.pipeline.execution.result module
Result types for pipeline execution.
- class nirs4all.pipeline.execution.result.ArtifactMeta(name: str, content_hash: str, path: str, format: str, format_version: str = '', nirs4all_version: str = '', metadata: ~typing.Dict[str, ~typing.Any] = <factory>)[source]
Bases:
objectMetadata about a persisted artifact.
- class nirs4all.pipeline.execution.result.StepOutput(artifacts: ~typing.List[~typing.Tuple[~typing.Any, str, str | None]] = <factory>, outputs: ~typing.List[~typing.Tuple[~typing.Any, str, str]] = <factory>, metadata: ~typing.Dict[str, ~typing.Any] = <factory>)[source]
Bases:
objectStandardized output from a controller execution.
- artifacts
Internal binaries (models, transformers) to be persisted for reproducibility. List of tuples: (object, name, format_hint).
- outputs
User outputs (charts, reports) to be saved as files. List of tuples: (data_object, filename_hint, type_hint).
- class nirs4all.pipeline.execution.result.StepResult(updated_context: ~nirs4all.pipeline.config.context.ExecutionContext, artifacts: ~typing.List[~typing.Any] = <factory>, outputs: ~typing.List[~typing.Any] = <factory>, predictions: ~nirs4all.data.predictions.Predictions | None = None)[source]
Bases:
objectResult of executing a single pipeline step.
- updated_context
Updated execution context after step
- artifacts
List of artifacts persisted during step execution
- Type:
List[Any]
- outputs
List of output files saved during step execution
- Type:
List[Any]
- predictions
Optional predictions generated by this step
- Type:
- predictions: Predictions | None = None
- updated_context: ExecutionContext