December 2019
Intermediate to advanced
368 pages
11h 10m
English
The run_experiment function runs the experiment using the provided hyperparameters and an initialized test environment to evaluate the discovered detector ANNs against the possible retina configurations. The function implementation has the following significant parts:
seed = 1569777981 # Create substrate substrate = create_substrate() # Create CPPN genome and population g = NEAT.Genome(0, substrate.GetMinCPPNInputs(), 2, # hidden units substrate.GetMinCPPNOutputs(), False, NEAT.ActivationFunction.TANH, NEAT.ActivationFunction.SIGNED_GAUSS, # hidden 1, # hidden layers seed params, 1) # one hidden layer pop = NEAT.Population(g, params, ...
Read now
Unlock full access