A gamified machine learning experience where the user gets to create a custom track and watch the AI learn its way through it.
MLCars.mp4
Warning
I made this game such a long time ago while self-learning machine learning to make a neural network from scratch. I can almost guarantee that this will not work in newer Unity versions.
- Generate custom track with the track tools.
- start and finish line.
- reward lines.
- helpful undo and loop features.
- Begin training!
- Speed up the simulation and watch as the cars get better at driving as the generations go by.
- several raycasts from the car to get the distance to walls
- cars normalized speed
- cars acceleration
- steering rotation
private double Activation(double inp)
{
return Math.Tanh(inp); //Hyperbolic tangent activation
}
Passing a green line will add points, wasting time and hitting the wall will substract points.
Simple mitotis evolution! Kill the worse performing half and copy and mutate the better performing half.
- A challange mode to test the AI cars that you thought.
- Smoother track building experience.
- GPU based Neural Network.
- AI saving to be able to close the game and continue teaching later.