pyphi.models.explanation#

Typed explanations of why a result came out as it did (result.explain()).

NullResultReason enumerates the conditions under which an analysis yields a trivial (Φ = 0 / α = 0) result. Finding and Explanation are the typed account .explain() returns; RunnerUp is the lightweight record of the second-best partition retained at MIP selection.

Functions

binding_direction_finding(cause_phi, effect_phi)

The Finding naming which direction binds min(φ_c, φ_e).

requirement_binding_finding(phi, ...)

The Finding naming which term of the intrinsic-information requirement set φₛ, or None when the requirement does not bind.

runner_up_from_candidates(candidates, mip_value)

The candidate ranked next after the MIP under key.

sia_runner_up_key(strategy)

The ranking key matching an SIA tie-resolution strategy.

Classes

Explanation(subject, level[, findings])

A typed account of why a result came out as it did.

Finding(kind, label[, value, detail, tone])

One element of an explanation.

NullResultReason(*values)

A condition under which an analysis returns a trivial null result.

RunnerUp(partition, phi[, normalized_phi, gap])

The second-best partition at MIP selection.