MCPcopy Create free account
hub / github.com/FidoProject/Fido / main

Function main

examples/GeneticAlgo.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18int main() {
19 srand(time(NULL));
20 gen::GeneticAlgo geneticAlgo = gen::GeneticAlgo(20, 0.4, 0.5, 10, getPopulationFitness);
21 net::NeuralNet modelNetwork = net::NeuralNet(1, 1, 1, 4, "simpleLinear");
22 net::NeuralNet bestNetwork = geneticAlgo.getBestNeuralNetwork(600, modelNetwork);
23}

Callers

nothing calls this directly

Calls 3

GeneticAlgoClass · 0.85
getBestNeuralNetworkMethod · 0.80
NeuralNetClass · 0.50

Tested by

no test coverage detected