pyphi.models.ces.PhiFold#

class pyphi.models.ces.PhiFold(sia, distinctions, relations, config=None, provenance=None, *, parent)[source]#

Bases: StructureView

A slice of a cause-effect structure: a set of seed distinctions and the relations incident to them.

distinctions holds the seeds; relations holds every relation that binds at least one seed; sia and config come from the structure the fold was taken from, available as parent. A fold is not a self-contained cause-effect structure — its relations may reference distinctions outside distinctions — so it is not accepted by plot_ces/project_ces; use highlight_phi_fold to visualize it.

Parameters:
property relation_closed: bool#

incident relations may reference non-seed distinctions.

Type:

False

property sum_phi_relations_contribution#

Σ over incident relations of φ_r · |r ∩ F| / |r|, where F is the set of seed distinctions — the seeds’ share of each incident relation’s φ.

property big_phi_contribution#

the seed distinctions’ full φ plus the seeds’ share of each incident relation’s φ (φ_r · |r ∩ F| / |r|). Summing this over the folds of any partition of the structure’s distinctions recovers big_phi.

Type:

The fold’s additive contribution to the structure’s Φ