deephyper.skopt.optimizer.base.eval_callbacks

Contents

deephyper.skopt.optimizer.base.eval_callbacks#

deephyper.skopt.optimizer.base.eval_callbacks(callbacks, result)[source]#

Evaluate list of callbacks on result.

The return values of the callbacks are ORed together to give the overall decision on whether or not the optimization procedure should continue.

Parameters:
  • callbacks (list of callables) – Callbacks to evaluate.

  • result (OptimizeResult, scipy object) – Optimization result object to be stored.

Returns:

decision – Decision of the callbacks whether or not to keep optimizing

Return type:

bool