December 2019
Intermediate to advanced
368 pages
11h 10m
English
The following is an example of using the MultiNEAT library to implement the XOR solver using neuroevolution. This is just an overview, without the implementation of the XOR fitness score evaluator (evaluate_xor), which will be discussed in the next chapter. Let's get started:
params = NEAT.Parameters()params.PopulationSize = 100# The rest of the settings omitted for brevity
g = NEAT.Genome(0, 3, 0, 1, False, NEAT.ActivationFunction.UNSIGNED_SIGMOID, NEAT.ActivationFunction.UNSIGNED_SIGMOID, 0, params, 0)pop = NEAT.Population(g, params, True, 1.0, i)
Read now
Unlock full access