pyphi.models.mice.MaximallyIrreducibleCauseOrEffect#

class pyphi.models.mice.MaximallyIrreducibleCauseOrEffect(ria)[source]#

Bases: Displayable, Orderable, ToDictFromExplicitAttrsMixin, ToPandasMixin

A maximally irreducible cause or effect (MICE).

These can be compared with the built-in Python comparison operators (<, >, etc.). Comparison is by φ value (order_by()).

property phi#

The difference between the mechanism’s unpartitioned and partitioned repertoires.

Type:

float

property normalized_phi#

Normalized φ value.

Type:

float

property direction#

CAUSE or EFFECT.

Type:

Direction

property mechanism#

The mechanism for which the MICE is evaluated.

Type:

list[int]

property mechanism_label#

The mechanism for which the MICE is evaluated.

Type:

list[int]

property mechanism_state#

The current state of the mechanism.

Type:

tuple[int]

property purview#

The purview over which this mechanism’s φ is maximal.

Type:

list[int]

property current_state#

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

Type:

tuple[int]

property mip#

The partition that makes the least difference to the mechanism’s repertoire.

Type:

JointPartition

property repertoire#

The unpartitioned repertoire of the mechanism over the purview.

Type:

np.ndarray

property partitioned_repertoire#

The partitioned repertoire of the mechanism over the purview.

Type:

np.ndarray

property selectivity#

The selectivity factor.

Type:

float

property specified_state#

The state(s) with the maximal absolute intrinsic difference between the unpartitioned and partitioned repertoires.

property ria#

The irreducibility analysis for this mechanism.

Type:

RepertoireIrreducibilityAnalysis

property purview_margin#

The φ gap between this purview and the best competing purview.

Purview selection is keyed on the value it reports, so a purview switch changes the cause-effect structure’s composition without a discontinuity in φ; this margin measures how decisively the structural choice was made. Zero when another purview ties exactly in φ, even when a later criterion of purview_tie_resolution then decides the selection (IIT 3.0 prefers the larger purview); purview_ties lists only the purviews that the whole cascade leaves tied. None when there was no competing purview. Excluded from equality and hashing.

property partition_margin#

The winning RIA’s mechanism-partition selection margin (partition_margin).

property state_margin#

The winning RIA’s specified-state selection margin (state_margin).

property effectively_tied#

Whether the purview, 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: the underlying RIA’s findings plus the purview-selection margin.

diff(other)[source]#

Structured delta to other (a.diff(b)), delegated to the underlying RIA.

property purview_ties#

The purviews that the purview_tie_resolution cascade leaves tied, this one among them. Purviews tied in φ that a later criterion separates are not listed; purview_margin is zero for them.

Type:

tuple[MaximallyIrreducibleCauseOrEffect]

set_purview_ties(ties)[source]#

Set the ties.

flip()[source]#

Return the linked MICE in the other direction.

is_congruent(specified_state)[source]#

Return whether the state specified by this MICE is congruent.

order_by()[source]#

Return a list of values to compare for ordering.

The first value in the list has the greatest priority; if the first objects are equal the second object is compared, etc.

to_dict()[source]#

Convert the object to a dict.

damaged_by_cut(system)[source]#

Return True if this MICE is affected by the system’s cut.

The cut affects the MICE if it either splits the MICE’s mechanism or splits the connections between the purview and mechanism.