nirs4all.pipeline.dagml.conformal_store module
Filesystem store for internal conformal calibration results.
- class nirs4all.pipeline.dagml.conformal_store.ConformalStoreManifest(result_fingerprint: str, artifact_fingerprint: str, files: Mapping[str, str], schema_id: str = 'nirs4all.dagml.conformal_store.v1', version: int = 1)[source]
Bases:
objectManifest for a filesystem conformal result store.
- classmethod from_dict(payload: Mapping[str, Any]) ConformalStoreManifest[source]
Parse a conformal store manifest and verify its fingerprint.
- classmethod load_json(path: str | Path) ConformalStoreManifest[source]
Load and verify a conformal store manifest.
- nirs4all.pipeline.dagml.conformal_store.attach_conformal_result_to_bundle(model_bundle_path: str | Path, result: CalibratedRunResult, output_path: str | Path | None = None, *, overwrite: bool = False, source: N4aSource | None = None) Path[source]
Copy a host model
.n4acontainer and attach a verified conformal sidecar.The source container is never modified; retained members are copied and verified by Core. In-place attachment is rejected. Existing conformal sidecars are refused unless
overwrite=True.sourceis a borrowed, already opened source ofmodel_bundle_path: it is neither reopened nor closed here.
- nirs4all.pipeline.dagml.conformal_store.export_conformal_result_bundle(result: CalibratedRunResult, path: str | Path, *, overwrite: bool = False) Path[source]
Export a calibrated result store as a conformal-only host
.n4acontainer.
- nirs4all.pipeline.dagml.conformal_store.load_conformal_result_archive(path: str | Path, *, source: N4aSource | None = None) CalibratedRunResult[source]
Load a conformal sidecar from a conformal-only or full model host
.n4acontainer.
- nirs4all.pipeline.dagml.conformal_store.load_conformal_result_bundle(path: str | Path, *, source: N4aSource | None = None) CalibratedRunResult[source]
Load and verify a conformal-only host
.n4acontainer.
- nirs4all.pipeline.dagml.conformal_store.load_conformal_result_store(path: str | Path) CalibratedRunResult[source]
Load and verify a filesystem conformal result store.