Solution space by NEAT is restricted to 2 layers ANNs. Can't file parameters for config file so that I can get more than 2 layers.
I started modifying and using the xor2.py file of NEAT to use for my dataset. Therefore, my code for NEAT is working but I want to move beyond 2 layer ANNs. Right now I am stuck with 2 layers ANNs in the solution space. Is there a way to specify in the config file that I need 3 or more layers? I tried checking all params that go into config file, but couldn't find that. Link - https://neat-python.readthedocs.io/en/latest/config_file.html
The NEAT algorithm is a genetic algorithm that starts with a lot of ANNs that are simply 2 layers: input and output. Through training, these ANNs change and add nodes until they are rather large and can solve a problem easily. It sounds like you either aren't training your population at all, or you are not training them enough to actually give them time to grow other nodes and layers.
Also, an xor problem cannot be solved in a 2 layer ANN. I believe the minimal and optimal solution is one with 3 layers, so hopefully your population evolves to that.