Scikit-optimize: Stopping criteria

Created on 23 Mar 2016  路  6Comments  路  Source: scikit-optimize/scikit-optimize

What is a good stopping criteria for blackbox optimization?

API New feature

Most helpful comment

Most implementations of CMA-ES (another black-box optimizer) use the following stopping criteria (e.g. this one):

  • max_iter / maximum number of function evaluations
  • minimum fitness value (f(x) < threshold)
  • _differences_ of function values (does not mean that we have an improvement, exploration is small near convergence, |f(xt) - f(xt-1)| < threshold)
  • difference of N best function values
  • difference of evaluated parameter vectors (||xt - xt-1|| < threshold)

All 6 comments

Right now, I just let it run it upto max_iter

We might add something like an improvement threshold between consecutive iterations, but this may be tricky to get correctly, since BO trades off exploitation for exploitation, and therefore it is far from guaranteed that the best optimum found so far will improve from one iteration to another.

Most implementations of CMA-ES (another black-box optimizer) use the following stopping criteria (e.g. this one):

  • max_iter / maximum number of function evaluations
  • minimum fitness value (f(x) < threshold)
  • _differences_ of function values (does not mean that we have an improvement, exploration is small near convergence, |f(xt) - f(xt-1)| < threshold)
  • difference of N best function values
  • difference of evaluated parameter vectors (||xt - xt-1|| < threshold)

Came up in #324. When working on this we should also investigate why there are so many warnings about a point already being evaluated in the unittests. My guess would be that with a convergence criteria like proposed here we would stop instead of continuing to evaluate the objective.

I will investigate this a bit and open a PR.

336 created the basics and implemented "difference of evaluated parameter vectors (||xt - xt-1|| < threshold)" from https://github.com/scikit-optimize/scikit-optimize/issues/6#issuecomment-220965349

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tritemio picture tritemio  路  3Comments

Atarust picture Atarust  路  3Comments

tritemio picture tritemio  路  4Comments

Yard1 picture Yard1  路  3Comments

glouppe picture glouppe  路  6Comments