pyphi.cost.PURVIEW_EVALUATION_UNITS#

pyphi.cost.PURVIEW_EVALUATION_UNITS = 12#

Work units one purview evaluation costs, taking one partition as the unit.

Before any partition is swept, a (mechanism, direction, purview) pair computes its unpartitioned repertoire and searches the candidate specified states. Regressing per-pair CPU time on the pair’s partition count over mechanism orders 1 to 6 and purview orders 1 to 3 puts that fixed cost at about twelve partition evaluations (524 µs against 41.8 µs). Charging it as one, as a plain operation count does, undercounts a scope whose purviews are small enough that few partitions amortize it, by up to 2.5× on the smallest pairs.

The measurement is in experiments/units_runtime_model.