nirs4all.pipeline.dagml.late_tuning module

Bind public whole-stack search paths to native nodes and the selected recipe.

class nirs4all.pipeline.dagml.late_tuning.LateFusionTuningRecipe(pipeline: list[Any], branches: list[list[Any]], meta: Any, layout: dict[str, Any], bindings: dict[str, dict[str, str]], operators: dict[str, tuple[Any, str]], has_local_finetune: bool = False)[source]

Bases: object

One unfitted recipe with shared parameter addresses for search and refit.

bindings: dict[str, dict[str, str]]
branches: list[list[Any]]
has_local_finetune: bool = False
layout: dict[str, Any]
meta: Any
operators: dict[str, tuple[Any, str]]
pipeline: list[Any]
selected_pipeline(params: dict[str, Any]) → list[Any][source]

Patch a private copy while preserving references within its branches.

nirs4all.pipeline.dagml.late_tuning.prepare_late_tuning(pipeline: list[Any], dataset: Any, paths: Any) → LateFusionTuningRecipe[source]

Validate the full recipe before opening a study or fitting any operator.

nirs4all.pipeline.dagml.late_tuning.validate_nested_local_finetune(step: dict[str, Any], paths: Any, *, prefix: str = '') → dict[str, Any] | None[source]

Normalize local host search and refuse competing parameter owners before fitting.