Skip to content

nexuml.core.provenance

nexuml.core.provenance

Optional local provenance snapshots for scenario-file runs.

snapshot_scenario_file_run

snapshot_scenario_file_run(
    loaded: LoadedScenarioFile,
    artifact_dir: str | Path | None,
    *,
    project_root: str | Path | None = None,
    command: str,
    command_args: dict[str, Any] | None = None,
    search_space: dict[str, dict[str, Any]] | None = None,
    study: Any = None,
) -> Path | None

Snapshot source, built scenario YAML, metadata, git, and tuning summary.

Returns:

Type Description
Path | None

Path to the snapshot directory, or None if artifact_dir is None.