pyphi.core.repertoire_algebra#

Stateless repertoire computation over System.

Layer 2 of the kernel. Functions take a System as the first argument; results are memoized via a per-instance decorator that purges when the System is garbage-collected.

Threading#

The kernel cache is the thread-safe pyphi.cache.ContentCache (eviction and refcount bookkeeping locked; the hot read path lock-free) — see pyphi.cache.

Functions

cache_info()

Return per-function cache size.

cause_effect_info(cs, mechanism, purview, ...)

Cause-effect information — minimum of cause and effect information.

cause_info(cs, mechanism, purview, **kwargs)

Cause information — distance between cause repertoire and unconstrained.

cause_repertoire(cs, mechanism, purview, ...)

Cause repertoire πc(z | m) of a mechanism over a purview.

clear_caches([cs])

Clear cache entries.

effect_info(cs, mechanism, purview, **kwargs)

Effect information — distance between effect repertoire and unconstrained.

effect_repertoire(cs, mechanism, purview[, ...])

Effect repertoire πe(z | m) of a mechanism over a purview.

expand_cause_repertoire(cs, repertoire_array, *)

expand_effect_repertoire(cs, repertoire_array, *)

expand_repertoire(cs, direction, ...[, ...])

forward_cause_probability(cs, mechanism, ...)

forward_cause_repertoire(cs, mechanism, purview)

Forward cause repertoire.

forward_effect_probability(cs, mechanism, ...)

forward_effect_repertoire(cs, mechanism, ...)

Forward effect repertoire is identical to the effect repertoire.

forward_probability(cs, direction, ...)

forward_repertoire(cs, direction, mechanism, ...)

indices2nodes(cs, indices)

Return the Node objects for these indices.

intrinsic_information(cs, direction, ...[, ...])

Compute intrinsic information and the maximally specified state.

null_concept(cs)

Return the null distinction — the point identified with the unconstrained cause and effect repertoires of the candidate system.

null_distinction(cs)

Return the null distinction — the point identified with the unconstrained cause and effect repertoires of the candidate system.

partitioned_repertoire(cs, direction, ...)

Compute the repertoire of a partitioned mechanism and purview.

potential_purviews(cs, direction, mechanism)

Return all purviews that could belong to the MIC or MIE.

repertoire(cs, direction, mechanism, ...)

transient_repertoires()

Compute repertoires without storing them in the kernel cache.

unconstrained_cause_repertoire(cs, purview)

unconstrained_effect_repertoire(cs, purview)

unconstrained_forward_cause_repertoire(cs, ...)

Unconstrained forward cause repertoire — see Eq.

unconstrained_forward_effect_repertoire(cs, ...)

Unconstrained forward effect repertoire — average over all mechanism states.

unconstrained_forward_repertoire(cs, ...)

unconstrained_repertoire(cs, direction, purview)