whitened_residual

pmrf.objectives.evaluators.whitened_residual(obj: Any, *args, **kwargs) → Array

Returns the whitened residual of an evaluator, term or problem.

The whitened residual is a real vector, half of whose squared norm is obj’s value up to terms constant in the model parameters (ADR-0009). It is what a least-squares minimiser minimises. args and kwargs are those obj is called with.

Raises:

NotImplementedError – If obj has no whitened residual, so is not yet supported with a least-squares minimiser.