Giter VIP home page Giter VIP logo

reinforcement_learning_algorithms's Introduction

Reinforcement Learning for Atari Games

Purpose

This project aims to implement and compare three Reinforcement Learning (RL) algorithms, Deep Q Networks (DQN), Advantage Actor-Critic (A2C), and Proximal Policy Optimization (PPO), using PyTorch. The goal is to train agents to beat Atari games such as Pong, demonstrating the effectiveness of these algorithms in learning complex tasks.

Table of Contents

Skills Used

  • Reinforcement Learning Algorithms (DQN, A2C, PPO)
  • Deep Learning (PyTorch Framework)
  • Python Programming
  • OpenAI Gym Environment

Technologies Used

  • Python
  • PyTorch
  • OpenAI Gym (for Atari game environments)

Project

The project achieved the following results:

  • Trained Deep Q Networks (DQN) agent to achieve high scores in Atari games, including Pong.
  • Implemented prioritized experience replay in DQN for efficient sampling.
  • Developed an Advantage Actor-Critic (A2C) agent that combines value-based and policy-based learning methods.
  • Developed a Proximal Policy Optimization (PPO) agent, known for its stable and reliable policy gradient updates.
  • Evaluated and compared the performance of DQN, A2C, and PPO on Atari games.

Background

Deep Q Networks (DQN)

DQN is a value-based RL algorithm that learns to approximate the Q-value function. It uses a neural network to estimate the Q-values for each action in a given state. In this project, DQN is enhanced with a prioritized memory buffer, which improves learning efficiency by prioritizing experience replay based on temporal difference error.

Advantage Actor-Critic (A2C)

A2C is a policy-based RL algorithm that combines actor and critic networks. The actor network learns a policy to select actions, while the critic network evaluates the state-value function. By leveraging both value-based and policy-based learning, A2C aims to improve sample efficiency and stability in training.

Proximal Policy Optimization (PPO)

PPO is a policy-based RL algorithm that improves the stability and reliability of policy updates by limiting the size of policy changes. It does this by using a clipped objective function to ensure that updates do not move the policy too far from the previous policy. This makes PPO particularly effective for complex environments like Atari games.

reinforcement_learning_algorithms's People

Contributors

jakemaz66 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.