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.GaussSamplerpass 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.GaussFullSamplerreturn 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.GaussStandardConstantreturn Mahalanobis norm of x w.r.t. the statistical model
cma.restricted_gaussian_sampler.GaussVDSampler, cma.restricted_gaussian_sampler.GaussVkDSamplerreturn 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.GaussStandardConstantreturn 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.GaussFullSamplerreturn associated linear transformation
cma.restricted_gaussian_sampler.GaussVDSampler, cma.restricted_gaussian_sampler.GaussVkDSampler, cma.sampler.GaussDiagonalSampler, cma.sampler.GaussFullSamplerreturn inverse of associated linear transformation
cma.restricted_gaussian_sampler.GaussVDSampler, cma.restricted_gaussian_sampler.GaussVkDSampler, cma.sampler.GaussDiagonalSampler, cma.sampler.GaussFullSampler, cma.sampler.GaussStandardConstanttransform 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.GaussStandardConstantvectors 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.GaussStandardConstantvector of coordinate-wise (marginal) variances
cma.restricted_gaussian_sampler.GaussVDSampler, cma.restricted_gaussian_sampler.GaussVkDSamplerUndocumented
cma.restricted_gaussian_sampler.GaussVDSampler, cma.restricted_gaussian_sampler.GaussVkDSamplerUndocumented