pyphi.optimization#

Black-box optimization of IIT quantities over substrate parameters.

Where pyphi.landscape analyzes the φ landscape along one axis, this module searches it: optimize() runs a seeded population method over a bounded box of connection weights, looking for a substrate that maximizes an IIT quantity — by default the signed normalized system irreducibility φₛ, which stays continuous across minimum-information-partition switches and so gives a gradient-free search no discontinuities to trip on.

weight_axes() builds the search space for the common case: a map from a parameter vector to a build_substrate() substrate, varying a chosen set of weight-matrix entries.

Functions

optimize(builder, state, bounds, *, seed[, ...])

Search a substrate's weights for a maximizer of an IIT quantity.

weight_axes(unit_functions, weights, ...)

Return a parameter axis varying several weights of a generated substrate.

Classes

OptimizationResult(best_params, ...)

The outcome of an optimize() run.