class StatisticalModelSamplerWithZeroMeanBaseClass(object):
Known subclasses: cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussSampler
Constructor: StatisticalModelSamplerWithZeroMeanBaseClass(std_vec, **kwargs)
yet versatile base class to replace a sampler namely in
CMAEvolutionStrategy
Method | __imul__ |
Undocumented |
Method | __init__ |
pass the vector of initial standard deviations or 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 | 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 |
Property | condition |
Undocumented |
Property | covariance |
Undocumented |
Property | variances |
vector of coordinate-wise (marginal) variances |
Instance Variable | _lam |
Undocumented |
Instance Variable | _mueff |
Undocumented |
Instance Variable | _parameters |
Undocumented |
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussSampler
pass the vector of initial standard deviations or dimension of the underlying sample space.
Ideally catch the case when std_vec
is a scalar and then
interpreted as dimension.
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussFullSampler
return scalar correction alpha such that X and f fit to f(x) = (x-mean) (alpha * C)**-1 (x-mean)
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussDiagonalSampler
, cma.sampler.GaussFullSampler
, cma.sampler.GaussStandardConstant
return Mahalanobis norm of x
w.r.t. the statistical model
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
return dict
with (default) parameters, e.g., c1
and cmu
.
See Also | |
RecombinationWeights |
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussDiagonalSampler
, cma.sampler.GaussFullSampler
, cma.sampler.GaussStandardConstant
return list of i.i.d. samples.
Parameters | |
number | is the number of samples. |
update | controls a possibly lazy update of the sampler. |
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussDiagonalSampler
, cma.sampler.GaussFullSampler
return associated linear transformation
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussDiagonalSampler
, cma.sampler.GaussFullSampler
return inverse of associated linear transformation
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussDiagonalSampler
, cma.sampler.GaussFullSampler
, cma.sampler.GaussStandardConstant
transform x as implied from the distribution parameters
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussDiagonalSampler
, cma.sampler.GaussFullSampler
, cma.sampler.GaussStandardConstant
vectors is a list of samples, weights a corrsponding list of learning rates
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
, cma.sampler.GaussDiagonalSampler
, cma.sampler.GaussFullSampler
, cma.sampler.GaussStandardConstant
vector of coordinate-wise (marginal) variances
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
Undocumented
cma.restricted_gaussian_sampler.GaussVDSampler
, cma.restricted_gaussian_sampler.GaussVkDSampler
Undocumented