CodeReclaimers / neat-python

Python implementation of the NEAT neuroevolution algorithm
BSD 3-Clause "New" or "Revised" License
1.42k stars 493 forks source link

Add maxtasksperchild parameter on ParallelEvaluator method #182

Closed AleZonta closed 2 years ago

AleZonta commented 4 years ago

Addition of maxtasksperchild parameter on ParallelEvaluator method. This enables to set the number of tasks a worker process can complete before it will exit and be replaced with a fresh worker process, to enable unused resources to be freed. Had to modify this to stop memory leaks from happening when a great number of processes are used on limited memory computers.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.05%) to 96.252% when pulling 5ae700b8fcb04f3491228ee834a343108a9f80ce on AleZonta:master into de2249a477c5a23cfc4f068826705a4810d1ef90 on CodeReclaimers:master.