Skip to main content
Ctrl+K
PyPhi 2.0 is out as a release candidate: what's new, and the migration guide for 1.x users.
PyPhi - Home PyPhi - Home
  • Getting started
  • Tutorials
  • How-to guides
  • Theory
  • Reference
  • Migration
  • GitHub
  • Getting started
  • Tutorials
  • How-to guides
  • Theory
  • Reference
  • Migration
  • GitHub
Ctrl+K

Documentation

  • Getting started
  • Tutorials
    • A complete worked example
    • Intrinsic units: analyzing systems at a macro grain
    • Recursive exclusion: how complexes divide a substrate
    • Actual causation
    • Causal reductionism and the frog
    • The IIT 4.0 demo notebook
  • How-to guides
    • Build a substrate
    • Read a result
    • Estimate the cost before you run
    • Configure PyPhi
    • Use PyPhi with an AI assistant
    • The PyPhi MCP server
    • Sweep states and subsystems
    • Save and load results
    • Export results
    • Visualize results
    • Run computations in parallel
    • Cache results
    • Run PyPhi on a cluster (CHTC)
    • Run a sweep as an HTCondor campaign
    • Search across grains
    • Query relational structure
    • Explore substrate parameter landscapes
    • Control tie-breaking
    • Reproduce results from earlier versions of IIT
    • FAQ and troubleshooting
  • Theory
    • What IIT computes
    • Substrate and system
    • Conditional independence
    • System integrated information
    • The intrinsic-information requirement
    • Distinctions and relations
    • The Φ-structure
    • Macro units and grains
    • Computational complexity
  • Reference
    • Glossary
    • Configuration options
    • Example networks
    • API reference
      • pyphi
      • pyphi.analyze
      • pyphi.Analysis
      • pyphi.sweep
      • pyphi.SweepResult
      • pyphi.optimize
      • pyphi.OptimizationResult
      • pyphi.substrate
      • pyphi.system
      • pyphi.substrate_generator
      • pyphi.examples
      • pyphi.estimate
      • pyphi.labels
      • pyphi.connectivity
      • pyphi.convert
      • pyphi.validate
      • pyphi.analysis
      • pyphi.sweeps
      • pyphi.cost
      • pyphi.conf
      • pyphi.formalism
      • pyphi.partition
      • pyphi.direction
      • pyphi.relations
      • pyphi.resolve_ties
      • pyphi.condensation
      • pyphi.compositional_state
      • pyphi.macro
      • pyphi.actual
      • pyphi.matching
      • pyphi.landscape
      • pyphi.optimization
      • pyphi.dynamics
      • pyphi.models
      • pyphi.display
      • pyphi.numerics
      • pyphi.measures
      • pyphi.serialize
      • pyphi.provenance
      • pyphi.graph
      • pyphi.visualize
      • pyphi.exceptions
      • pyphi.parallel
      • pyphi.cache
      • pyphi.campaign
      • pyphi.mcp
      • pyphi.log
      • pyphi.core
      • pyphi.distribution
      • pyphi.timescale
      • pyphi.automorphism
    • Transition probability matrix conventions
    • Citing PyPhi
    • Contributing
  • Migration
    • What’s new in PyPhi 2.0
    • Migrating to PyPhi 2.0
    • Migrating from substrate_modeler to current PyPhi

Cite PyPhi: Mayner et al. (2018), PLOS Comput Biol 14(7): e1006343.

Source on GitHub

  • Reference
  • API reference
  • pyphi.models
  • pyphi.models.actual_causation
  • pyphi.models.actual_causation.CausalLink

pyphi.models.actual_causation.CausalLink#

class pyphi.models.actual_causation.CausalLink(ria, extended_purview=None, *, purview_ties=None)[source]#

Bases: Displayable, Orderable, ToPandasMixin

A maximally irreducible actual cause or effect.

These can be compared with the built-in Python comparison operators (<, >, etc.), using the same ordering key as the underlying AcRepertoireIrreducibilityAnalysis: α is compared first, ties are broken toward the larger mechanism, and remaining ties toward the smaller purview.

Parameters:

purview_ties (Sequence[AcRepertoireIrreducibilityAnalysis] | None)

property alpha#

The difference between the mechanism’s unpartitioned and partitioned actual probabilities.

Type:

float

property phi#

Alias for α for PyPhi utility functions.

property direction#

the causal direction, either CAUSE or EFFECT.

Type:

Direction

property mechanism#

The mechanism for which the action is evaluated.

Type:

list[int]

property purview#

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

Type:

list[int]

property extended_purview#

List of purviews over which this causal link is maximally irreducible.

Note: It will contain multiple purviews iff causal link has undetermined actual causes/effects (e.g. two irreducible causes with same alpha over different purviews).

Type:

tuple[tuple[int]]

property purview_ties: tuple[AcRepertoireIrreducibilityAnalysis, ...] | None#

Tuple of tied AcRepertoireIrreducibilityAnalysis instances under symmetric over-determination — minimal candidates sharing alpha_max with non-comparable purviews (Albantakis et al. 2019, Definition 1 outcome 2). None when the actual cause is unique.

property ria#

The irreducibility analysis for this mechanism.

Type:

AcRepertoireIrreducibilityAnalysis

explain()[source]#

A typed account of why this causal link’s α came out as it did, delegated to the underlying AcRIA.

Return type:

Explanation

is_orderable_with(other)[source]#

Whether self and other are mutually orderable.

Default: any two instances are orderable. Override in subclasses that need cross-instance guards.

Parameters:

other (object)

Return type:

bool

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.

previous

pyphi.models.actual_causation.Account

next

pyphi.models.actual_causation.DirectedAccount

On this page
  • CausalLink
    • CausalLink.alpha
    • CausalLink.phi
    • CausalLink.direction
    • CausalLink.mechanism
    • CausalLink.purview
    • CausalLink.extended_purview
    • CausalLink.purview_ties
    • CausalLink.ria
    • CausalLink.explain()
    • CausalLink.is_orderable_with()
    • CausalLink.order_by()
Show Source

© Copyright 2014–2026, Will Mayner and contributors.