pyphi.campaign.shards#
Shard planning for scoped cause-effect campaigns.
The planner descends a three-rung ladder, splitting only where the per-job budget requires: whole mechanisms are cost-balance-packed into shards; a mechanism over budget splits its scoped (direction, purview) list into cost-balanced ranges; a single (mechanism, direction, purview) pair over budget splits its partition enumeration into interleaved strides (shard i of k evaluates partitions i, i+k, i+2k, …), which balances any systematic cost trend along the enumeration. Sharding never changes results — every shard executes exact computations over a subset, and collection merges tie sets losslessly.
Functions
|
Reorder a partition slice so likely-reducible partitions come first. |
|
Count present-in-cm connections severed by a mechanism partition. |
|
Materialize stride |
|
Materialize stride |
|
Plan the shards of a scoped cause-effect computation. |
|
Plan system-partition strides for the system irreducibility analysis. |
Classes
|
One shard of a scoped analysis: what to compute and how it was split. |