PyBrain is a Python-based library for creating neural networks. I looked at the tutorials on my site, but they don't seem to help me much. The simulation that I plan to do is to have a car that is driving along the highway, equipped with 5 range finders, showing the current distance between it and the walls, between 0.0
and 1.0
. Fitness is based on medium speed. (Higher will be better). The output will be a single number, how much you are turning at this particular moment, where everything is correct: 1.0
, and everything else is either -1.0
or 0.0
, depending on what makes it easier.
I assume that using this setting, I will have 5 input neurons and 1 output neuron. For example, suppose I have 4 hidden neurons. Suppose also that I made a function called runSimulation()
, which takes the neural network as an argument, drives the car on the course using this neural network, and returns the average speed (fitness).
How can I train a neural network based on the repeated results of runSimulation()
?
I hope I explain it correctly (not to mention at least a little to know what I'm doing), but if I donβt, tell me please.
user263078
source share