sudo apt-get install -y nlohmann-json-dev
doxygen doc.conf
Add to your projects CMakeLists.txt:
add_subdirectory(NEAT-GRU NEAT)
target_link_libraries(trading NEAT_GRU)
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=Release -D__MULTITHREADED__=1 .. .
sudo make install
Implement the abstract class Game::Game
:
#include
Create a Train
instance and give it a pointer to a Simulation
instance:
auto * sim = new Simulation(); const int iterations = 1000; const int maxindividuals = 300; // Individuals per generation const int inputs = 10; // Input neurons const int outputs = 5; // Output neurons Train train(sim, maxindividuals, inputs, outputs); train.start(); // Runs the training, will output the resulting network to "topologies.json"