selfdrivingcar

command module
v0.0.0-...-99c21b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2019 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

self-driving car

self-driving car with deep learning

pic

Usage

sdl2 graphic library was usedin this project. Before compiling the project, sd2 must be installed and the https://github.com/tfriedel6/canvas library should be installed. later go build and run..

The file brain.json in the main folder is the file where the artificial neural network is saved. if the brain.json file is deleted, the training starts from the beginning.

Training

The values of the sensors of the car are given as input to the artificial neural network and decide whether to go right, left or straight as output.

The car's sensor data is kept in a sequence until 1,1,1 and when the sensor data is 1,1,1 the inputs are rewarded and the sensor data is cleared. if the car crashes without sensor 1,1,1 the entries up to that time will be penalized. this way the car learns to go without crashing.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址