pyphi.landscape.perturb#

pyphi.landscape.perturb(builder, state, theta, *, h=0.0001, quantity='signed_phi', subset=None, formalism=None)[source]#

Estimate the local derivative of an IIT quantity at one point.

Parameters:
  • builder (Callable[[float], Substrate]) – The parameter axis (see weight_axis()).

  • state (tuple[int, ...]) – The substrate state to analyze.

  • theta (float) – The evaluation point.

  • h (float) – Finite-difference step. Derivative estimates are stable across several orders of magnitude of h inside a selection regime; the default sits in the middle of that range.

  • quantity (str) – Which quantity to differentiate: "phi", "signed_phi" (default), "normalized_phi", or "signed_normalized_phi". The signed variants carry gradient information where the positive-part clamp makes the canonical values exactly flat.

  • subset (Sequence[int], optional) – Node indices of the candidate system.

  • formalism (str, optional) – Leave unset to compute IIT under the active configuration. Pass an earlier version’s name only to reproduce published results; it applies to these evaluations only, as in pyphi.analyze().

Returns:

Perturbation

Raises:
Return type:

Perturbation