Examples

We provide a number of reference examples directly on our GitHub. Each of these examples demonstrates how to recreate a particular experiment or result from recent evolutionary algorithm literature, to highlight that Evotorch is highly suited to both academic research in and advanced industrial applications of evolutionary algorithms.

We provide a number of examples as jupyter notebooks. The easiest way to get started with these examples is to run:

cd evotorch
pip install jupyterlab
jupyter lab

In the examples/notebooks/ directory, you can find the following notebooks:

In addition, to help you to implement advanced neuroevolutionary reinforcement learning settings, we have provided 3 python scripts in the examples/scripts directory:

  • rl.py re-implements almost all experiments from the paper proposing ClipUp, and is easily reconfigured to replicate any particular experiment using sacred.
  • rl_enjoy.py allows you to easily visualize and enjoy agents trained through rl.py.
  • tinytraj_humanoid_bullet.py implements the modified "pybullet_envs:HumanoidBulletEnv-v0" environment from the paper.