pyphi.models.actual_causation.AcRepertoireIrreducibilityAnalysis#
- class pyphi.models.actual_causation.AcRepertoireIrreducibilityAnalysis(alpha, state, direction, mechanism, purview, partition, probability, partitioned_probability, node_labels=None, reasons=None)[source]#
Bases:
Displayable,Orderable,ToPandasMixinThe irreducibility analysis of an actual cause or effect.
Holds the minimum information partition of a mechanism over a purview and the resulting α, the integrated cause or effect information (Albantakis et al. 2019, Eqs. 15-16): how much more the occurrence specifies about its actual cause or effect than it does under that partition.
These can be compared with the built-in Python comparison operators (
<,>, etc.). The ordering key is(α, mechanism size, -purview size), so α is compared first, ties are broken toward the larger mechanism, and remaining ties toward the smaller purview.- Variables:
alpha (float) – α, the integrated cause or effect information. Derived from the unpartitioned and partitioned actual probabilities via the configured
alpha_measure.state (tuple[int, ...]) – The state of the mechanism in the specified temporal direction.
direction (Direction) – Whether this analysis is computed with cause or effect repertoires.
purview (tuple[int, ...]) – The purview over which the unpartitioned actual probability differs the least from the actual probability under the partition.
partition (JointPartition or None) – The minimum information partition of the mechanism over the purview (
Nonefor a null analysis).probability (float) – The unpartitioned actual probability of the purview state.
partitioned_probability (float) – The actual probability of the purview state under the partition.
- property partition_ties: tuple[AcRepertoireIrreducibilityAnalysis, ...] | None#
Tuple of AcRIAs tied with this one at the cascade’s minimum α level over the MIP search, or
Noneif no tie.
- set_partition_ties(ties)[source]#
Attach a tied AcRIA set to this analysis. The tied set is shared by reference among peers; each tied member exposes the same tuple via
.partition_ties.- Parameters:
ties (Sequence[AcRepertoireIrreducibilityAnalysis] | None)
- Return type:
None
- is_orderable_with(other)[source]#
Whether
selfandotherare mutually orderable.Default: any two instances are orderable. Override in subclasses that need cross-instance guards.
- 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.
- property phi#
Alias for α for PyPhi utility functions.