This project focuses on using reinforcement learning to achieve highest score in LunarLander-v2.
- Make sure you have latest version of virtual env,
pip install --upgrade virtualenv
- Make sure
python3
is installed on your machine. To check, typepython3
. If not available, setup from here. - Create a virtual env by
virtualenv -p python3 venv
at the root of this repo (can be anywhere else too, but make sure not to commit this folder). This will create a directoryvenv
, containing default dependencies for python3. If you create this folder at the root of this repo, it will be ignored by git before pushing. - Activate virtual env by
source venv/bin/activate
. This will activate the virtual env. Running python3 will open console with default dependencies from python. - Install dependencies for this project by
pip3 install -r requirements.txt --no-cache
. This will install all the dependencies inside the python virtual environment. - Note: Pip will have installed matpltlib, there's an issue with matpltlib with mac os. Follow the steps here to fix this issue.
You are ready! We recommend using pycharm community edition. Once installed, follow the following steps to point project interpreter for pycharm:
- Go to
Preferences
, by shortcutCmd + ,
or in Menu BarPyCharm > Preferences...
- Go to
Project Interpreter
underProject:lunar-lander
- Click on settings cog wheel on right side of top Project Interpreter path specification and click on
Add...
. Choose existing environment and add the path of the one you created. Here's detailed description of how to configure venv in pycharm.
- Prior to any step, please make sure you have dependencies specific to debian machine for installing gym.
apt-get install libjpeg-dev cmake swig python-pyglet python3-opengl libboost-all-dev
libsdl2-2.0.0 libsdl2-dev libglu1-mesa libglu1-mesa-dev libgles2-mesa-dev
freeglut3 xvfb libav-tools
- Use
requirements-google-cloud.txt
to install requirements specific to debian.
Please follow the following guidelines to contribute.
- Create a new branch from
master
, make changes and open a PR. - Get it reviewed by contributers and we merge it in collaboration.
Abhishek Bharani, Amey Naik and Prabhjot Singh Rai.