Skip to content

Repository files navigation

Self-driving car with Deep-Q Network

Commands to run to execute this project

Start by installing the requirements:

sudo pip3 install -r requirements.txt

To train your reinforcement learning agent with some parameters, move to the directory scripts (cd scripts) and run:

python3 -m run_train --num_episodes=20 --output='../my_weights.h5'

or resuming a training: python3 -m run_train --num_episodes=40 --input='../my_weights_resume' --output='../my_weights_resume'

To test your trained agent in a greedy way (saved in the .h5 file):

python3 -m run_test --model='../my_weights.h5'

How to modify/improve the code

To modify or improve the program, you may modify the following elements :

  1. environment.py:
  • rewards
  • end of the episode.
  1. agent.py
  • an update scheme for epsilon
  • The epsilon-greedy policy itself
  • The neural network mapping states to values Q(s, a)

alt text

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages