pybop._evaluation#
Classes#
Evaluates a function (or callable object) for the SciPy optimisers |
|
Sequential evaluates a function (or callable object) |
Module Contents#
- class pybop._evaluation.SciPyEvaluator(function, args=None)[source]#
Bases:
pints.EvaluatorEvaluates a function (or callable object) for the SciPy optimisers for either a single or multiple positions.
- Parameters:
function (callable) – The function to evaluate. This function should accept an input and optionally additional arguments, returning either a single value or a tuple.
args (sequence, optional) – A sequence containing extra arguments to be passed to the function. If specified, the function will be called as function(x, *args).
- class pybop._evaluation.SequentialJaxEvaluator(function, args=None)[source]#
Bases:
pints.EvaluatorSequential evaluates a function (or callable object) for either a single or multiple positions. This class is based off the PintsSequentialEvaluator class, with additions for PyBOP’s JAX cost classes.
- Parameters:
function (callable) – The function to evaluate. This function should accept an input and optionally additional arguments, returning either a single value or a tuple.
args (sequence, optional) – A sequence containing extra arguments to be passed to the function. If specified, the function will be called as function(x, *args).