Running the modified maze experiment

Now, we are ready to run the experiment in the newly created virtual environment. You can start the experiment by cloning the corresponding Git repository and running the script with the following commands:

$ git clone https://github.com/PacktPublishing/Hands-on-Neuroevolution-with-Python.git$ cd Hands-on-Neuroevolution-with-Python/Chapter9$ python maze_experiment_safe.py -t 1 -g 150 -m medium
Do not forget to activate the appropriate virtual environment with the conda activate maze_co command.

The preceding command starts one trial of the experiment for 150 generations of evolution using the medium-complexity maze configuration. After about 100 generations of evolution, a successful solution is discovered ...

Get Hands-On Neuroevolution with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.