pyphi.models.ria.RepertoireIrreducibilityAnalysis#
- class pyphi.models.ria.RepertoireIrreducibilityAnalysis(phi, direction, mechanism, purview, partition, repertoire, partitioned_repertoire, specified_state=None, mechanism_state=None, current_state=None, node_labels=None, selectivity=None, reasons=None, signed_phi=None, partition_margin=None)[source]#
Bases:
Displayable,OrderableByPhi,ToDictFromExplicitAttrsMixin,ToPandasMixinAn analysis of the irreducibility (φ) of a mechanism over a purview, for a given partition, in one temporal direction.
These can be compared with the built-in Python comparison operators (
<,>, etc.). Comparison is by φ value (order_by()).- Parameters:
phi (float)
direction (Direction)
partition (JointPartition)
repertoire (ArrayLike | None)
partitioned_repertoire (ArrayLike | None)
specified_state (StateSpecification | None)
node_labels (NodeLabels | None)
selectivity (float | None)
reasons (list[NullResultReason] | None)
signed_phi (float | DistanceResult | None)
partition_margin (float | None)
- property phi: float#
Canonical φ value (
|·|+clamped).This is
positive_part(signed_phi)— the integrated information value with the|·|+positive-part operator applied. That operator is defined in Albantakis et al. (2023), Eqs. 19-20, where it sets negative integrated-information values to zero. Always non-negative. For the raw value before clamping (which may be negative under preventative-cause semantics), seesigned_phi.- Type:
- property signed_phi: float | DistanceResult#
The raw φ before the
|·|+clamp.When negative, flags preventative-cause structure that the clamped
phihides. Surfaced for diagnostic inspection of substrates with preventative mechanisms.
- property purview_label#
The purview node labels, cased by the specified state (see
pyphi.labels.NodeLabels.label_string()). Uncased when the analysis specifies no state: null analyses, and IIT 3.0, which has no specified states.- Type:
- property current_state#
The current state of the purview units. The state the mechanism specifies over them is
specified_state.state.
- property partition#
The partition of the mechanism-purview pair that was analyzed.
- Type:
- property repertoire#
The repertoire of the mechanism over the purview.
- Type:
np.ndarray
- property partitioned_repertoire#
The partitioned repertoire of the mechanism over the purview. This is the product of the repertoires of each part of the partition.
- Type:
np.ndarray
- property reasons#
Reasons why the computation short-circuited.
- property partition_margin: float | None#
The gap in (clamped) normalized φ between this MIP and the best competing mechanism partition.
Zero when a competitor ties exactly, even when a later criterion of
mip_tie_resolutionthen decides the selection (IIT 3.0 breaks φ ties lexicographically);partition_tieslists only the partitions that the whole cascade leaves tied.Nonewhen there was no competitor or the partition sweep stopped early on a reducible partition. Setshortcircuit_sia=Falseto evaluate every partition and obtain an exact margin even when φ = 0. Excluded from equality and hashing.
- property state_margin: float | None#
The intrinsic-information gap between the specified purview state and the best competing state (
state_margin).
- property effectively_tied: bool#
Whether the partition or specified-state selection is within
config.numerics.precisionof a tie.
- diff(other)[source]#
Structured delta from this analysis to
other(a.diff(b)).A mechanism-level result carries no
ConfigSnapshot, soconfig_diffis always empty.- Return type:
- property specified_state#
The state with the maximal absolute intrinsic difference between the unpartitioned and partitioned repertoires among all ties.
- is_congruent(specified_state)[source]#
Whether the state specified by this RIA is congruent to the given one.
- property partition_ties#
The RIAs of the mechanism partitions that the
mip_tie_resolutioncascade leaves tied, this one among them.
- property node_labels#
NodeLabels for this system.