CodeReclaimers / neat-python

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

Innovation Numbers for Genes #169

Open FaydSpeare opened 5 years ago

FaydSpeare commented 5 years ago

I can't seem to find where innovation numbers for genes are cross-checked with other structural mutations that could have occurred in the generation. It seems like this wouldn't be a problem very often, though theoretically it could happen, riight?

FaydSpeare commented 5 years ago

It could be an interesting addition to specify how many generations after the first instance of a specific structural mutation that a duplicate structural mutation in later generations would still be considered the same (and thus given the same innovation number) . One could also keep a global list of innovation numbers and cross-check any new structural mutations with those that have occurred previously throughout all generations.

ntraft commented 1 year ago

Regarding identical mutations within the same generation, it seems someone else has recently complained about this and written themselves a fix (although they have not submitted a pull request). #228