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()).theta (float) – The evaluation point.
h (float) – Finite-difference step. Derivative estimates are stable across several orders of magnitude of
hinside 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:
ValueError – If
quantityis not one of the four φ variants.pyphi.exceptions.StateUnreachableError – If the state is unreachable at any of the three evaluation points — a point query fails loud rather than skipping.
- Return type: