CodeReclaimers / neat-python

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

Network optimization (Simplification - Simplify) #261

Open i3130002 opened 1 year ago

i3130002 commented 1 year ago

Is your feature request related to a problem? Please describe. While using the module, I noticed that it would not reduce the nodes and optimize/simplify the networks. It might be a great idea to do so especially after training and before exporting the top one.

Describe the solution you'd like Suppose we have a network for XOR similar to the image below Digraph gv

This network can be optimized into something more standardized like this image from here

Describe alternatives you've considered A method to perform optimizations on a network or as a step in evolution.

Additional context Years ago I witnessed a (Java if I'm not mistaken) neat project doing so.