I am trying to implement NEAT from scratch by going through the original NEAT paper. I implemented a Genome class which consists of a list of Node Genes and Connection Genes

public class Genome
    List<NodeGene> nodeGenes;
    List<ConnGene> connGenes;

    private int fitness;

I've implemented all the other function for crossing and mutation but am stuck on how to evaluate the neural network of the Genome and get an output.

NodeGene class

public class NodeGene
    public enum LAYERS

    int id;
    LAYERS layer;

ConnGene class

public class ConnGene
    int innovNum;
    int inNode;
    int outNode;
    double weight;
    bool enabled;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.