pyphi.provenance.Provenance#
- class pyphi.provenance.Provenance(pyphi_version, git_sha, git_dirty, timestamp, python_version, numpy_version, scipy_version, platform, wall_time=None, seed=None, note=None, estimator=None)[source]#
Bases:
objectImmutable record of how, when, and by what code a result was computed.
- Parameters:
- estimator: dict[str, Any] | None = None#
Structured record of how an estimated input was produced (data regime, estimator model, prior, sample counts).
Nonefor results computed from an exactly specified substrate.
- classmethod capture(*, wall_time=None, seed=None, estimator=None)[source]#
Capture the current environment into a
Provenance.wall_time(seconds) is supplied by the compute entry point;seedis supplied only by code paths that consumed an RNG;estimatoris supplied only by estimation entry points. All default toNonefor deterministic, directly-constructed results.