class GaussVkDSampler(StatisticalModelSamplerWithZeroMeanBaseClass):
Constructor: GaussVkDSampler(dimension, randn, kadapt, **kwargs)
Restricted Gaussian Sampler for VkD-CMA O(N*k^2 + k^3) Time/Space Variant of CMA-ES with C = D * (I + V * V^T) * D
References
[1] Youhei Akimoto and Nikolaus Hansen. Online Model Selection for Restricted Covariance Matrix Adaptation. In Proc. of PPSN 2016, pp. 3--13 (2016) [2] Youhei Akimoto and Nikolaus Hansen. Projection-Based Restricted Covariance Matrix Adaptation for High Dimension. In Proc. of GECCO 2016, pp. 197--204 (2016)
Static Method | extend |
return correct options to run cma.fmin or initialize cma.CMAEvolutionStrategy using the GaussVkDSampler AKA VkD-CMA-ES |
Method | __imul__ |
Undocumented |
Method | __init__ |
pass dimension of the underlying sample space |
Method | get |
get the condition numbers of D**2 and (I + VV') |
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 | accepted |
Undocumented |
Instance Variable | cs |
Undocumented |
Instance Variable | D |
Undocumented |
Instance Variable | ds |
Undocumented |
Instance Variable | dx |
Undocumented |
Instance Variable | ema |
Undocumented |
Instance Variable | ema |
Undocumented |
Instance Variable | ema |
Undocumented |
Instance Variable | factor |
Undocumented |
Instance Variable | factor |
Undocumented |
Instance Variable | flg |
Undocumented |
Instance Variable | itr |
Undocumented |
Instance Variable | k |
Undocumented |
Instance Variable | k |
Undocumented |
Instance Variable | k |
Undocumented |
Instance Variable | k |
Undocumented |
Instance Variable | k |
Undocumented |
Instance Variable | k |
Undocumented |
Instance Variable | k |
Undocumented |
Instance Variable | kadapt |
Undocumented |
Instance Variable | kmax |
Undocumented |
Instance Variable | kmin |
Undocumented |
Instance Variable | last |
Undocumented |
Instance Variable | last |
Undocumented |
Instance Variable | last |
Undocumented |
Instance Variable | lndiag |
Undocumented |
Instance Variable | lnlambda |
Undocumented |
Instance Variable | lnsigma |
Undocumented |
Instance Variable | N |
Undocumented |
Instance Variable | opt |
Undocumented |
Instance Variable | pc |
Undocumented |
Instance Variable | ps |
Undocumented |
Instance Variable | randn |
Undocumented |
Instance Variable | S |
Undocumented |
Instance Variable | sigma |
Undocumented |
Instance Variable | sigma |
Undocumented |
Instance Variable | U |
Undocumented |
Instance Variable | V |
Undocumented |
Instance Variable | weights |
Undocumented |
Property | condition |
Undocumented |
Property | correlation |
Undocumented |
Property | covariance |
Undocumented |
Property | variances |
vector of coordinate-wise (marginal) variances |
Method | _get |
Undocumented |
Method | _get |
Return the learning rate cone, cmu, cc depending on k |
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 GaussVkDSampler
AKA VkD-CMA-ES
get the condition numbers of D**2 and (I + VV')
Theoretically, the condition number of the covariance matrix can be at most the product of the return values. It might be safe to stop a run if the product of the return values reaches 1e14.
Returns
- float
- condition number of D
- float
- condition number of I + VV'
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
Return the learning rate cone, cmu, cc depending on k
Parameters
- weights : list of float
- the weight values for vectors used to update the distribution
- k : int
- the number of vectors for covariance matrix
Returns
- cone, cmu, cc : float in [0, 1]. Learning rates for rank-one, rank-mu,
- and the cumulation factor for rank-one.