{"id":27371919,"url":"https://github.com/alessandroleite/navigation-drl","last_synced_at":"2025-04-13T09:45:22.706Z","repository":{"id":39729164,"uuid":"254406324","full_name":"alessandroleite/navigation-drl","owner":"alessandroleite","description":"This project trains an agent to navigate and to collect bananas in a continuous square environment. The environment is based on the Unity Machine Learning Agents Toolkit","archived":false,"fork":false,"pushed_at":"2022-11-21T21:56:16.000Z","size":381,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-11T18:32:58.860Z","etag":null,"topics":["ddqn","deep-q-learning","deep-reinforcement-learning","double-deep-q-network","dqn","q-learning"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alessandroleite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-09T15:16:51.000Z","updated_at":"2020-04-09T15:56:26.000Z","dependencies_parsed_at":"2022-09-16T20:50:55.304Z","dependency_job_id":null,"html_url":"https://github.com/alessandroleite/navigation-drl","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandroleite%2Fnavigation-drl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandroleite%2Fnavigation-drl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandroleite%2Fnavigation-drl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandroleite%2Fnavigation-drl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alessandroleite","download_url":"https://codeload.github.com/alessandroleite/navigation-drl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248694211,"owners_count":21146945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddqn","deep-q-learning","deep-reinforcement-learning","double-deep-q-network","dqn","q-learning"],"created_at":"2025-04-13T09:45:21.990Z","updated_at":"2025-04-13T09:45:22.696Z","avatar_url":"https://github.com/alessandroleite.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Navigation RL\n\n### 1. Introduction\nThis project trains an agent to navigate and to collect bananas in a continuous square environment. The environment is based on the [Unity Machine Learning Agents Toolkit](https://github.com/Unity-Technologies/ml-agents). \n\nA reward of +1 is provided for collecting a yellow banana, and a reward of -1 is provided for collecting a blue banana.  Thus, the agent must collect as many as yellow bananas as possible while avoiding blue bananas.  \n\nThe state space has 37 dimensions and contains the agent's velocity, along with ray-based perception of objects around agent's forward direction.  Given this information, the agent has to learn how to best select actions.  Four discrete actions are available, corresponding to:\n\n- **`0`** - move forward.\n- **`1`** - move backward.\n- **`2`** - turn left.\n- **`3`** - turn right.\n\nThe task is episodic, and in order to solve the environment, the agent must get an average score of +13 over 100 consecutive episodes.\n\n![Trained Agent][trained-agent]\n\n### 2. Getting Starting\n\n1. Download the environment from one of the links below.  You need only select the environment that matches your operating system:\n    - Linux: [click here](https://s3-us-west-1.amazonaws.com/udacity-drlnd/P1/Banana/Banana_Linux.zip)\n    - Mac OSX: [click here](https://s3-us-west-1.amazonaws.com/udacity-drlnd/P1/Banana/Banana.app.zip)\n    - Windows (32-bit): [click here](https://s3-us-west-1.amazonaws.com/udacity-drlnd/P1/Banana/Banana_Windows_x86.zip)\n    - Windows (64-bit): [click here](https://s3-us-west-1.amazonaws.com/udacity-drlnd/P1/Banana/Banana_Windows_x86_64.zip)\n    \n    (_For Windows users_) Check out [this link](https://support.microsoft.com/en-us/help/827218/how-to-determine-whether-a-computer-is-running-a-32-bit-version-or-64) if you need help with determining if your computer is running a 32-bit version or 64-bit version of the Windows operating system.\n\n2. Place the **unzip** file in the `env` directory \n\n### 3. Requirements\n\nThis project requires **Python 3.6** and for the libraries check the `requirements.txt` file. In short, the required libraries are:\n\n- [NumPy](http://www.numpy.org/)\n- [Matplotlib](https://matplotlib.org/)\n- [Torch](https://pytorch.org)\n- [UnityAgents](https://github.com/Unity-Technologies/ml-agents)\n- [OpenAI Gym](https://gym.openai.com)\n\n### 4. Approach\n\nThe proposed solution relies on Deep Q-learning (DQN) [1] and Double DQN (DDQN) [2] algorithms to solve the task.\n\n![DQN Score][dqn-score]\n\n![DDQN Score][ddqn-score]\n\n### 5. References\n\n[1] V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, S. Petersen, C. Beat- tie, A. Sadik, I. Antonoglou, H. King, D. Kumaran, D. Wierstra, S. Legg, and D. Hassabis, \"[Human-level control through deep reinforcement learning](https://web.stanford.edu/class/psych209/Readings/MnihEtAlHassibis15NatureControlDeepRL.pdf),” Nature, vol. 518, no. 7540, pp. 529–533, Feb 2015.\n\n[2] H. Van Hasselt, A. Guez, and D. Silver, \"[Deep reinforcement learning with double q-learning](https://www.aaai.org/ocs/index.php/AAAI/AAAI16/paper/download/12389/11847),\" in Thirtieth AAAI Conference on Artificial Intelligence, 2016.\n\n[//]: # (Image References)\n\n[trained-agent]: https://user-images.githubusercontent.com/10624937/42135619-d90f2f28-7d12-11e8-8823-82b970a54d7e.gif \"Trained Agent\"\n\n[dqn-score]: figures/dqn_score.png\n[ddqn-score]: figures/ddqn_score.png\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessandroleite%2Fnavigation-drl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falessandroleite%2Fnavigation-drl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessandroleite%2Fnavigation-drl/lists"}