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, ToPandasMixin

An 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:
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), see signed_phi.

Type:

float

property signed_phi: float | DistanceResult#

The raw φ before the |·|+ clamp.

When negative, flags preventative-cause structure that the clamped phi hides. Surfaced for diagnostic inspection of substrates with preventative mechanisms.

property normalized_phi#

Canonical normalized φ (|·|+ clamped).

Type:

float

property signed_normalized_phi#

Raw normalized φ before the |·|+ clamp.

Type:

float

property direction#

CAUSE or EFFECT.

Type:

Direction

property mechanism#

The mechanism that was analyzed.

Type:

tuple[int]

property mechanism_label#

The labels of the mechanism nodes.

Type:

tuple[str]

property mechanism_state#

The current state of the mechanism.

Type:

tuple[int]

property purview#

The purview over which the mechanism was analyzed.

Type:

tuple[int]

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:

str

property current_state#

The current state of the purview units. The state the mechanism specifies over them is specified_state.state.

Type:

tuple[int]

property partition#

The partition of the mechanism-purview pair that was analyzed.

Type:

JointPartition

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 selectivity#

The selectivity factor.

Type:

float

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_resolution then decides the selection (IIT 3.0 breaks φ ties lexicographically); partition_ties lists only the partitions that the whole cascade leaves tied. None when there was no competitor or the partition sweep stopped early on a reducible partition. Set shortcircuit_sia=False to 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.precision of a tie.

explain()[source]#

A typed account of why this φ value came out as it did.

Return type:

Explanation

diff(other)[source]#

Structured delta from this analysis to other (a.diff(b)).

A mechanism-level result carries no ConfigSnapshot, so config_diff is always empty.

Return type:

ResultDiff

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_resolution cascade leaves tied, this one among them.

property node_labels#

NodeLabels for this system.