C++ Learning Agents – PART 2 of 6
In this part, we write the brains of our agents: a simple feed forward artificial neural network.
In this part, we write the brains of our agents: a simple feed forward artificial neural network.
In this part, we will be implementing the neural network that we wrote in the last tutorial as the first step towards providing our little UFOs with some form of intelligence.
In the part, we start work on implementing a GA in our game to enable our UFOs to improve over time.
So far we’ve implemented our UFOs, provided them with neural networks, and started our genetic algorithm. Which means we’re almost finished the series. This week we’ll look at these topics:
We need a way of defining if a UFO is ‘fitter’ than another one.
We need a method of selecting the UFOs from the pool based on their fitness.
Once two UFOs are selected from the pool we need a method of combining their neural networks to create a new network.
The last in the series! We finish the genetic algorithm by applying a mutation to the newly evolved networks and then we write a bit of code to output the average time alive for each generation.