Running the visual discrimination experiment

To start the experiment, you need to enter the local directory that contains the vd_experiment_multineat.py script, and execute the following command:

$ python vd_experiment_multineat.py
Do not forget to activate the appropriate virtual environment with the following command: $ conda activate vd_multineat

After a particular number of generations, the successful solution will be found, and you will see lines similar to the following in the console output:

****** Generation: 16 ******Best fitness: 0.995286, genome ID: 2410Species count: 11Generation elapsed time: 3.328 secBest fitness ever: 0.995286, genome ID: 2410****** Generation: 17 ******Solution found at generation: 17, best fitness: 1.000000, ...

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.