+/GENN
genetically evolving neural networks
git clone https://git.julia.blue/+/GENN
cc48e92
imdone-todo-updates
1#ifndef GENN_XOR_H 2#define GENN_XOR_H 3 4#include "../include/simulation.h" 5 6class Xor :public Simulation { 7private : 8double testData [4 ][3 ]= {{1.0 ,0.0 ,0.0 }, 9 {1.0 ,1.0 ,0.0 }, 10 {1.0 ,0.0 ,1.0 }, 11 {1.0 ,1.0 ,1.0 } 12 }; 13 14double answers [4 ]= {0.0 ,1.0 ,1.0 ,0.0 }; 15 16public : 17Xor (); 18 19void evaluate (Genome & g ); 20 21void view (Network n ); 22}; 23 24 25#endif //GENN_XOR_H