pyphi.cost.mechanism_workloads#
- pyphi.cost.mechanism_workloads(substrate, subset=None, scope=None, limit=10000000)[source]#
Per-mechanism workload under a scope, keyed by mechanism.
Each mechanism’s
MechanismWorkloadweighs its scoped purview evaluations against its mechanism-partition sweeps by their measured relative cost, and records the state-space size of its largest scoped purview. Summed over all mechanisms, the units equalPURVIEW_EVALUATION_UNITS× the scopedAnalysisEstimate.purview_evaluationsplus the scopedAnalysisEstimate.mechanism_partition_sweeps.- Parameters:
- Raises:
ValueError – If the counting walk exceeds
limit— the workload is then too large to plan; narrow the scope or raise the limit.- Return type:
dict[tuple[int, …], MechanismWorkload]