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: dict[str, ~typing.Any]=<factory>)[source]
Bases:
objectMetadata about a persisted artifact.
- Variables:
name (str) – Artifact identifier (e.g., ‘model’, ‘scaler’)
content_hash (str) – Content-based hash for deduplication
path (str) – Relative path from artifacts directory
format (str) – Artifact format (e.g., ‘joblib’, ‘h5’, ‘safetensors’)
format_version (str) – Version of the library used (e.g., ‘sklearn==1.3.0’)
nirs4all_version (str) – Version of nirs4all used (e.g., ‘0.4.1’)
- class nirs4all.pipeline.execution.result.StepResult(updated_context: ExecutionContext, artifacts: list[Any] = <factory>, outputs: list[Any] = <factory>, predictions: Predictions | None = None)[source]
Bases:
objectResult of executing a single pipeline step.
- Variables:
updated_context (nirs4all.pipeline.config.context.ExecutionContext) – Updated execution context after step
artifacts (list[Any]) – List of artifacts persisted during step execution
outputs (list[Any]) – List of output files saved during step execution
predictions (nirs4all.data.predictions.Predictions | None) – Optional predictions generated by this step
- updated_context: ExecutionContext