SirBob01 / NEAT-Python

Genetic learning algorithm implementation for simulations, games, or general machine learning problems
BSD 3-Clause "New" or "Revised" License
47 stars 10 forks source link

Refactor genome representation #8

Closed SirBob01 closed 2 years ago

SirBob01 commented 4 years ago

The genes are currently represented as an edge list. Refactor Genome to keep an adjacency list instead. Use topological sorting to forward propagate values.

umair-nasir14 commented 2 years ago

Hi, I love your implementation and would like to add to this. Would you kindly elaborate on the adjacency list? Do you want to represent the genome as node and connections separately?

SirBob01 commented 2 years ago

@umair-nasir14 I haven't worked on this code in a long time so I don't quite remember the reasons behind this issue. That said, feel free to add your own enhancements to the code. You're more than welcome to modify it as you see fit!