nirs4all.pipeline.dagml.general_archive module

Trusted Python model archive replay through an explicit DAG PREDICT phase.

These host artifacts are not portable Core archives. Their digest protects against corruption, not a malicious producer: joblib can execute Python code.

nirs4all.pipeline.dagml.general_archive.copy_general_archive(path: Path, target: str | Path, *, expected_fingerprint: str | None, source: N4aSource | None = None) → Path[source]

Save the verified source bytes atomically without fitting or materializing them.

nirs4all.pipeline.dagml.general_archive.general_archive_manifest(path: str | Path, *, source: N4aSource | None = None) → dict[str, Any] | None[source]

Read host provenance from one source without deserializing operators.

nirs4all.pipeline.dagml.general_archive.predict_general_archive(path: str | Path, data: Any, *, expected_archive_fingerprint: str | None = None, loaded_archive: dict[str, Any] | None = None, source: N4aSource | None = None, output: str | None = None) → PredictResult[source]

Replay a captured aggregate model; no old executor or retraining is used.

nirs4all.pipeline.dagml.general_archive.predict_general_result(result: Any, data: Any) → PredictResult[source]

Use the live fitted artifact of a general Session without requiring disk.