class documentation
keep and update a termination condition dictionary.
The dictionary is "usually" empty and returned by
CMAEvolutionStrategy.stop()
. The class methods entirely depend on
CMAEvolutionStrategy
class attributes.
Details
This class is not relevant for the end-user and could be a nested class, but nested classes cannot be serialized.
Example
>>> import cma >>> es = cma.CMAEvolutionStrategy(4 * [1], 1, {'verbose':-9}) #doctest: +ELLIPSIS >>> print(es.stop()) {} >>> es.optimize(cma.ff.sphere, verb_disp=0) #doctest: +ELLIPSIS <... >>> es.stop()['tolfun'] == 1e-11 True
See Also | |
OOOptimizer.stop() , CMAEvolutionStrategy.stop() |
Method | __call__ |
update and return the termination conditions dictionary |
Method | __init__ |
Undocumented |
Method | clear |
empty the stopdict |
Instance Variable | es |
Undocumented |
Instance Variable | lastiter |
Undocumented |
Instance Variable | opts |
Undocumented |
Instance Variable | stoplist |
Undocumented |
Method | _addstop |
Undocumented |
Method | _update |
Test termination criteria and update dictionary |
Instance Variable | _get |
Undocumented |
Instance Variable | _value |
Undocumented |