pyphi.estimate.PhiPosterior#
- class pyphi.estimate.PhiPosterior(samples, complex_samples, state, subset, seed, regime, coverage, provenance, screen_margin=None, screened=False, reference_margins=None)[source]#
Bases:
Displayable,SerializablePosterior distribution over φₛ, propagated from a substrate posterior.
The distribution is generically a mixture: a point mass at zero from samples whose candidate system is reducible (the system does not exist as one entity), and a continuous density over the φₛ values of the irreducible samples. Because the mixture’s mean describes no possible system,
float()refuses; summarize withp_positive,quantiles(),conditional_quantiles(), or the rawsamples.Each sample is the system integrated information φₛ (
sia.phi) of the candidate system given bysubset(the whole substrate by default), not of the maximal complex of that draw and not the structure integrated information Φ.- Variables:
samples (numpy.ndarray[tuple[Any, ...], numpy.dtype[numpy.float64]]) – Per-draw φₛ values, shape
(n_samples,).complex_samples (tuple[tuple[int, ...], ...]) – Per-draw unit indices of the maximal complex;
()when no irreducible candidate exists in that draw.subset (tuple[int, ...] | None) – Unit indices of the candidate system, or
Nonefor the whole substrate.seed (int) – Seed that drove all draws.
regime (str) – The causal assertion carried from the substrate posterior (
"perturbational"or"observational").coverage (pyphi.estimate.CoverageReport) – The substrate posterior’s
CoverageReport.provenance (pyphi.provenance.Provenance) – Environment record captured at computation time; its
estimatorfield carries the substrate posterior’s record.screen_margin (float | None) – The margin threshold passed to
phi_posterior();Nonewhen screening was off.screened (bool) – Whether the margin screen actually engaged (the reference margins all cleared the threshold), fixing the per-draw complex identity at the posterior mean’s answer.
reference_margins (dict[str, float | None] | None) – The selection margins of the reference maximal complex at the posterior mean, recorded whenever a threshold was given — the audit trail for why the screen engaged or refused. Keys:
"partition","cause_state","effect_state", and"complex"(the φ_s gap between the top two irreducible candidate systems — the margin of the complex identity itself).
- Parameters:
seed (int)
regime (str)
coverage (CoverageReport)
provenance (Provenance)
screen_margin (float | None)
screened (bool)
- to_pandas()[source]#
Return one row per draw: its index, the analysis’
phiand the units of the maximal complex.- Return type:
DataFrame