nirs4all.pipeline.dagml.sequential_models module

Expand successive model checkpoints without fitting or resampling their folds.

nirs4all.pipeline.dagml.sequential_models.sequential_model_pipelines(pipeline: Any) → list[list[Any]] | None[source]

Retain the cumulative non-model prefix at each top-level model checkpoint.

Models do not transform the input of the following checkpoint. In particular, a transform after a model must not be retroactively applied to that model. A later splitter replaces the earlier checkpoint’s splitter and receives its own native FoldSet. Legacy duplicates that later model’s four CV test rows under the final label; DAG keeps those CV rows and a real full-train REFIT artifact instead. Branches and merges have their own execution semantics and are not expanded.

nirs4all.pipeline.dagml.sequential_models.share_model_folds(pipelines: list[list[Any]], spectro: Any) → list[list[Any]][source]

Resolve a shared splitter once, retaining grouping metadata and row IDs.