module documentation
A short and simple example experiment with restarts mainly for reading.
For code to run in practice, check out the example_experiment_complete.py.
The code is fully functional but (mainly) emphasises on readability. Hence, it produces only rudimentary progress messages and does not provide batch distribution or timing prints.
To apply the code to a different solver, fmin must be re-assigned or
re-defined accordingly, and the below code may need to be edited at the two
places marked with "### input".
For example, using cma.fmin2 instead of scipy.optimize.fmin can be done
like:
import cma
def fmin(fun, x0, **kwargs):
res = cma.fmin2(fun, x0, 2, {'verbose': -9} if not kwargs.get('disp')
else None)
return res[0]
See also: https://coco-platform.org/getting-started#experiment
| Variable | __author__ |
Undocumented |
| Variable | __copyright__ |
Undocumented |
| Variable | budget |
Undocumented |
| Variable | dsl |
Undocumented |
| Variable | minimal |
Undocumented |
| Variable | observer |
Undocumented |
| Variable | output |
Undocumented |
| Variable | repeater |
Undocumented |
| Variable | suite |
Undocumented |
| Variable | suite |
Undocumented |
| Variable | xopt |
Undocumented |