nirs4all.pipeline.dagml.host_artifacts module

Bounded-memory sidecars for directory-backed Python host estimators.

nirs4all.pipeline.dagml.host_artifacts.file_fingerprint(path: Path) → tuple[str, int][source]

Hash a file without holding its contents in memory.

nirs4all.pipeline.dagml.host_artifacts.hydrate_host_artifacts(model: Any, directories: dict[str, Path], *, owner: Any = None) → None[source]

Attach already verified AutoGluon directories to a loaded model.

nirs4all.pipeline.dagml.host_artifacts.stage_host_artifacts(model: Any, root: Path, prefix: str) → Iterator[list[dict[str, Any]]][source]

Copy model directories as independent files while joblib stores references.

nirs4all.pipeline.dagml.host_artifacts.verify_host_artifacts(root: Path, refs: Any) → dict[str, Path][source]

Verify every declared sidecar before any model deserialization.