+/GENN

genetically evolving neural networks

git clone https://git.julia.blue/+/GENN

Joseph RyanFix Bugs there were so many i dont even know where to start. it doesn't crash now but it still doesn't work7dcde84

v0.2
460 B26 linesraw
1#ifndef GENN_SIMULATION_H
2#define GENN_SIMULATION_H
3
4
5#include "NEAT.h"
6
7class Simulation {
8public:
9    NEAT *controller;
10
11    virtual void evaluate(Genome *)=0;
12
13    virtual void view(Genome *)=0;
14
15    void run(int n) {
16        for(int t=0;t<n;t++) {
17            for (int i = 0; i < controller->pool.size(); i++) {
18                evaluate(controller->pool[i]);
19            }
20            controller->nextGen();
21        }
22    }
23};
24
25
26#endif //GENN_SIMULATION_H