Home▸Machine Learning & Neural Networks▸CMA-ES: Covariance Matrix Adaptation Evolution Strategy

CMA-ES: Covariance Matrix Adaptation Evolution Strategy

CMA-ES minimises a function it can only evaluate, never differentiate. Pick Sphere, Rosenbrock or Rastrigin, the population size, the first step size and whether the covariance and the step size adapt, and watch the full algorithm run on a solid 3D landscape: each generation draws lambda points from a Gaussian, ranks them, moves the mean to the weighted average of the best half, learns the shape of the valley with rank-one and rank-mu covariance updates and sets the step size from the cumulative evolution path. Pearl markers are the population, green ones the selected parents, the gold ball the mean, and the pale ellipse the one-sigma contour of the search distribution. The Blender-built terrain uses the real heights 0.34 ln(1 + f). Numerical checks cover the recombination weights, the expected norm of a Gaussian vector, the eigen-decomposition, the sampling covariance by Monte Carlo and convergence on Sphere and Rosenbrock.

Machine Learning & Neural Networks3DAdvanced60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
CMA-ES: Covariance Matrix Adaptation Evolution Strategy ↗ Open standalone

CMA-ES minimises a function it can only evaluate, never differentiate. Pick Sphere, Rosenbrock or Rastrigin, the population size, the first step size and whether the covariance and the step size adapt, and watch the full algorithm run on a solid 3D landscape: each generation draws lambda points from a Gaussian, ranks them, moves the mean to the weighted average of the best half, learns the shape of the valley with rank-one and rank-mu covariance updates and sets the step size from the cumulative evolution path. Pearl markers are the population, green ones the selected parents, the gold ball the mean, and the pale ellipse the one-sigma contour of the search distribution. The Blender-built terrain uses the real heights 0.34 ln(1 + f). Numerical checks cover the recombination weights, the expected norm of a Gaussian vector, the eigen-decomposition, the sampling covariance by Monte Carlo and convergence on Sphere and Rosenbrock.

⚙ Under the hood

CMA-ES minimises a function it can only evaluate, never differentiate. Pick Sphere, Rosenbrock or Rastrigin, the population size, the first step size and whether the covariance and the step size adapt, and watch the full algorithm run on a solid 3D landscape: each generation draws lambda points from a Gaussian, ranks them, moves the mean to the weighted average of the best half, learns the shape of the valley with rank-one and rank-mu covariance updates and sets the step size from the cumulative evolution path. Pearl markers are the population, green ones the selected parents, the gold ball the mean, and the pale ellipse the one-sigma contour of the search distribution. The Blender-built terrain uses the real heights 0.34 ln(1 + f). Numerical checks cover the recombination weights, the expected norm of a Gaussian vector, the eigen-decomposition, the sampling covariance by Monte Carlo and convergence on Sphere and Rosenbrock.

cma-esevolution-strategyhyperparameter-optimizationblack-box-optimizationgaussian-processmachine-learningCMA-ESEvolution StrategyBlack-box OptimizationCovariance MatrixRosenbrock FunctionRastrigin Function

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)