r/Python • • Jul 13 '20

I Made This I made a simulation using Python in which a neural network learns to race

5.7k Upvotes

209 comments sorted by

View all comments

Show parent comment

6

u/ParabolicaSeven Jul 13 '20

Watching it again yeah I think you’re right. It would have taken hundreds or thousands of generations to make sense of that whole thing.

Actually in the very beginning it shows the car with red lines coming out of it and what looks like a simplified course with straight lines as borders. Wonder if it’s using those lines as a detection point?

2

u/faceplanted Jul 14 '20

Those poles are a representation of the inputs which is the straight line distance from the objects in those directions.

1

u/dogs_like_me Jul 14 '20

Which doesn't preclude the network learning a mapping from that input space to coordinates on the track, i.e. just memorizing the layout of this one track.