class CMAAdaptSigmaBase(object):
Known subclasses: cma.sigma_adaptation.CMAAdaptSigmaCSA
, cma.sigma_adaptation.CMAAdaptSigmaDistanceProportional
, cma.sigma_adaptation.CMAAdaptSigmaMedianImprovement
, cma.sigma_adaptation.CMAAdaptSigmaNone
, cma.sigma_adaptation.CMAAdaptSigmaTPA
Constructor: CMAAdaptSigmaBase(*args, **kwargs)
step-size adaptation base class, implement hsig
(for stalling
distribution update) functionality via an isotropic evolution path.
Details: hsig
or _update_ps
must be called before the sampling
distribution is changed. _update_ps
depends heavily on
cma.CMAEvolutionStrategy
.
Method | __init__ |
Undocumented |
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 | update |
update es.sigma |
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 |
cma.sigma_adaptation.CMAAdaptSigmaTPA
make consistency checks with a CMAEvolutionStrategy
instance
as input
return "OK-signal" for rank-one update, True
(OK) or False
(stall rank-one update), based on the length of an evolution path
cma.sigma_adaptation.CMAAdaptSigmaCSA
, cma.sigma_adaptation.CMAAdaptSigmaDistanceProportional
, cma.sigma_adaptation.CMAAdaptSigmaMedianImprovement
, cma.sigma_adaptation.CMAAdaptSigmaNone
, cma.sigma_adaptation.CMAAdaptSigmaTPA
update es.sigma
Parameters | |
es | CMAEvolutionStrategy class instance |
**kwargs | whatever else is needed to update es.sigma, which should be none. |
cma.sigma_adaptation.CMAAdaptSigmaCSA
update the isotropic evolution path.
Using es attributes mean, mean_old, sigma, sigma_vec, sp.weights.mueff, cp.cmean and sm.transform_inverse.
Parameters | |
es:CMAEvolutionStrategy | Undocumented |