Examples¶
The repository contains a set of notebooks that can be run locally or in Google Colab.
Running them locally requires the examples extra, see
Installation.
| Notebook | Topic | |
|---|---|---|
| Getting started | The ask-eval-tell API, fitness shaping and custom metrics. | Open in Colab |
| Black-box optimization benchmark | Visualizing BBOB functions and comparing strategies on them. | Open in Colab |
| Reinforcement learning | Evolving MLP control policies in Gymnax and Brax. | Open in Colab |
| Vision | Training CNN classifiers on MNIST and CIFAR-10. | Open in Colab |
| Restart strategies | Simple, IPOP and BIPOP restart controllers. | Open in Colab |
| Diffusion Evolution | Optimization with Diffusion Evolution. | Open in Colab |
| Stein Variational ES | Stein Variational strategies on BBOB problems. | Open in Colab |
| Persistent and Noise-Reuse ES | Evolution strategies for meta-learning problems. | Open in Colab |
| Parallelization | Running a strategy across multiple devices. | Open in Colab |
Scripts¶
Two standalone scripts evaluate the learned algorithms:
learned_sphere.pyruns the pretrained Learned ES, EvoTF and Learned GA on a two-dimensional sphere function.cma_anchored_les_brax.pyevaluatesCMAAnchoredLESon eight Brax tasks.