class GaussVDSampler(StatisticalModelSamplerWithZeroMeanBaseClass):
Constructor: GaussVDSampler(dimension, randn, debug)
Restricted Gaussian Sampler for VD-CMA VD-CMA: Linear Time/Space Comparison-based Natural Gradient Optimization The covariance matrix is limited as C = D * (I + v*v^t) * D, where D is a diagonal, v is a vector.
Reference
Youhei Akimoto, Anne Auger, and Nikolaus Hansen. Comparison-Based Natural Gradient Optimization in High Dimension. In Proc. of GECCO 2014, pp. 373 -- 380 (2014)
Static Method | extend |
return correct options to run cma.fmin or initialize cma.CMAEvolutionStrategy using the GaussVDSampler AKA VD-CMA-ES |
Method | __imul__ |
Undocumented |
Method | __init__ |
pass dimension of the underlying sample space |
Method | inverse |
return scalar correction alpha such that X and f fit to f(x) = (x-mean) (alpha * C)**-1 (x-mean) |
Method | norm |
return Mahalanobis norm of x w.r.t. the statistical model |
Method | parameters |
return dict with (default) parameters, e.g., c1 and cmu . |
Method | parameters |
return dict with (default) parameters, e.g., c1 and cmu . |
Method | sample |
return list of i.i.d. samples. |
Method | to |
return associated linear transformation |
Method | to |
return inverse of associated linear transformation |
Method | transform |
transform x as implied from the distribution parameters |
Method | transform |
Undocumented |
Method | update |
vectors is a list of samples, weights a corrsponding list of learning rates |
Instance Variable | dvec |
Undocumented |
Instance Variable | N |
Undocumented |
Instance Variable | norm |
Undocumented |
Instance Variable | norm |
Undocumented |
Instance Variable | pc |
Undocumented |
Instance Variable | randn |
Undocumented |
Instance Variable | vn |
Undocumented |
Instance Variable | vnn |
Undocumented |
Instance Variable | vvec |
Undocumented |
Instance Variable | weights |
Undocumented |
Property | condition |
Undocumented |
Property | correlation |
Undocumented |
Property | covariance |
Undocumented |
Property | variances |
vector of coordinate-wise (marginal) variances |
Static Method | _alpha |
Undocumented |
Static Method | _ngv |
Undocumented |
Static Method | _pvec |
Undocumented |
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Instance Variable | _debug |
Undocumented |
Instance Variable | _mueff |
Undocumented |
Instance Variable | _parameters |
Undocumented |
Inherited from StatisticalModelSamplerWithZeroMeanBaseClass
:
Instance Variable | _lam |
Undocumented |
return correct options to run cma.fmin
or initialize
cma.CMAEvolutionStrategy
using the GaussVDSampler
AKA VD-CMA-ES
cma.interfaces.StatisticalModelSamplerWithZeroMeanBaseClass.inverse_hessian_scalar_correction
return scalar correction alpha such that X and f fit to f(x) = (x-mean) (alpha * C)**-1 (x-mean)
return list of i.i.d. samples.
Parameters | |
number | is the number of samples. |
update | controls a possibly lazy update of the sampler. |
cma.interfaces.StatisticalModelSamplerWithZeroMeanBaseClass.to_linear_transformation_inverse
return inverse of associated linear transformation
def _ngv_ngd(dvec, vn, vnn, norm_v, norm_v2, alpha, avec, bsca, invavnn, pvec, qvec): ¶
Undocumented