class documentation
class CMAAdaptSigmaMedianImprovement(CMAAdaptSigmaBase):
Constructor: CMAAdaptSigmaMedianImprovement(**kwargs)
Compares median fitness to the 27%tile fitness of the previous iteration, see Ait ElHara et al, GECCO 2013.
>>> import cma >>> es = cma.CMAEvolutionStrategy(3 * [1], 1, ... {'AdaptSigma':cma.sigma_adaptation.CMAAdaptSigmaMedianImprovement, ... 'verbose': -9}) >>> assert es.optimize(cma.ff.elli).result[1] < 1e-9 >>> assert es.result[2] < 2000
| Method | __init__ |
Undocumented |
| Method | initialize |
late initialization using attributes N and popsize |
| Method | update |
update es.sigma |
| Instance Variable | c |
Undocumented |
| Instance Variable | damp |
Undocumented |
| Instance Variable | fit |
Undocumented |
| Instance Variable | index |
Undocumented |
| Instance Variable | s |
Undocumented |
Inherited from CMAAdaptSigmaBase:
| Method | check |
make consistency checks with a CMAEvolutionStrategy instance as input |
| Method | hsig |
return "OK-signal" for rank-one update, True (OK) or False (stall rank-one update), based on the length of an evolution path |
| Method | initialize |
set parameters and state variable based on dimension, mueff and possibly further options. |
| Method | update2 |
return sigma change factor and update self.delta. |
| Instance Variable | cs |
Undocumented |
| Instance Variable | delta |
cumulated effect of adaptation |
| Instance Variable | is |
Undocumented |
| Instance Variable | ps |
Undocumented |
| Method | _update |
update the isotropic evolution path. |
| Instance Variable | _ps |
Undocumented |
update es.sigma
| Parameters | |
| es | CMAEvolutionStrategy class instance |
| **kwargs | whatever else is needed to update es.sigma, which should be none. |