nirs4all.pipeline.dagml.residual_run module
Lower a residual model into base, learner, and native fusion graph nodes.
- exception nirs4all.pipeline.dagml.residual_run.ResidualImplicitCvWarning[source]
Bases:
UserWarningA residual model inferred a training-only CV for its OOF targets.
- nirs4all.pipeline.dagml.residual_run.residual_operator(pipeline: list[Any]) ResidualModel | None[source]
Recognize the public single residual-model pipeline form.
- nirs4all.pipeline.dagml.residual_run.run_residual_model(pipeline: list[Any], operator: ResidualModel, spectro: Any, dataset_arg: str, cli: str, venv_python: str, run_dir: Path, metric: str, task_type: str, *, dataset_pickle: str | None, config_name: str, random_state: int | None, refit: bool) RunResult[source]
Execute the native residual graph; host nodes only fit base/learner estimators.