pyphi.models.distinction.Distinction#
- class pyphi.models.distinction.Distinction(mechanism=None, cause=None, effect=None)[source]#
Bases:
Displayable,OrderableByPhi,ToDictFromExplicitAttrsMixin,ToPandasMixinThe maximally irreducible cause and effect specified by a mechanism.
These can be compared with the built-in Python comparison operators (
<,>, etc.). Comparison is by φ value (order_by()).- Variables:
mechanism (tuple[int]) – The mechanism that the distinction consists of.
cause (MaximallyIrreducibleCause) – The MIC representing the maximally-irreducible cause of this distinction.
effect (MaximallyIrreducibleEffect) – The MIE representing the maximally-irreducible effect of this distinction.
- property effectively_tied: bool#
Whether any selection behind this distinction’s cause or effect (purview, mechanism partition, or specified state) is within
config.numerics.precisionof a tie.
- property phi: float#
The size of the distinction.
This is the minimum of the φ values of the distinction’s MIC and MIE.
- Type:
- explain()[source]#
A typed account of why this distinction’s φ came out as it did: which direction (cause or effect) binds, plus that direction’s own findings.
- Return type:
- diff(other)[source]#
Structured delta from this distinction to
other(a.diff(b)).A distinction carries no
ConfigSnapshot, soconfig_diffis always empty.- Return type:
- property cause_purview_label#
The cause purview node labels, cased by the specified cause state (see
pyphi.labels.NodeLabels.label_string()).- Type:
- property effect_purview_label#
The effect purview node labels, cased by the specified effect state.
- Type:
- property cause_repertoire#
The cause repertoire.
- Type:
np.ndarray
- property effect_repertoire#
The effect repertoire.
- Type:
np.ndarray