All Projects → Kautenja → playing-mario-with-deep-reinforcement-learning

Kautenja / playing-mario-with-deep-reinforcement-learning

Licence: MIT license
An implementation of (Double/Dueling) Deep-Q Learning to play Super Mario Bros.

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to playing-mario-with-deep-reinforcement-learning

Paddle-RLBooks
Paddle-RLBooks is a reinforcement learning code study guide based on pure PaddlePaddle.
Stars: ✭ 113 (+105.45%)
Mutual labels:  dqn, double-dqn, dueling-dqn
Deeprl
Modularized Implementation of Deep RL Algorithms in PyTorch
Stars: ✭ 2,640 (+4700%)
Mutual labels:  deep-reinforcement-learning, dqn, double-dqn
Deep-Reinforcement-Learning-With-Python
Master classic RL, deep RL, distributional RL, inverse RL, and more using OpenAI Gym and TensorFlow with extensive Math
Stars: ✭ 222 (+303.64%)
Mutual labels:  deep-reinforcement-learning, dqn, double-dqn
Reinforcement Learning With Tensorflow
Simple Reinforcement learning tutorials, 莫烦Python 中文AI教学
Stars: ✭ 6,948 (+12532.73%)
Mutual labels:  dqn, double-dqn, dueling-dqn
Reinforcement Learning
Minimal and Clean Reinforcement Learning Examples
Stars: ✭ 2,863 (+5105.45%)
Mutual labels:  deep-reinforcement-learning, dqn
Learning To Communicate Pytorch
Learning to Communicate with Deep Multi-Agent Reinforcement Learning in PyTorch
Stars: ✭ 236 (+329.09%)
Mutual labels:  deep-reinforcement-learning, dqn
Explorer
Explorer is a PyTorch reinforcement learning framework for exploring new ideas.
Stars: ✭ 54 (-1.82%)
Mutual labels:  deep-reinforcement-learning, dqn
omd
JAX code for the paper "Control-Oriented Model-Based Reinforcement Learning with Implicit Differentiation"
Stars: ✭ 43 (-21.82%)
Mutual labels:  deep-reinforcement-learning, dqn
Hands On Intelligent Agents With Openai Gym
Code for Hands On Intelligent Agents with OpenAI Gym book to get started and learn to build deep reinforcement learning agents using PyTorch
Stars: ✭ 189 (+243.64%)
Mutual labels:  deep-reinforcement-learning, dqn
king-pong
Deep Reinforcement Learning Pong Agent, King Pong, he's the best
Stars: ✭ 23 (-58.18%)
Mutual labels:  deep-reinforcement-learning, dqn
breakout-Deep-Q-Network
Reinforcement Learning | tensorflow implementation of DQN, Dueling DQN and Double DQN performed on Atari Breakout
Stars: ✭ 69 (+25.45%)
Mutual labels:  dqn, dueling-dqn
Pytorch Drl
PyTorch implementations of various Deep Reinforcement Learning (DRL) algorithms for both single agent and multi-agent.
Stars: ✭ 233 (+323.64%)
Mutual labels:  deep-reinforcement-learning, dqn
Deep Rl Trading
playing idealized trading games with deep reinforcement learning
Stars: ✭ 228 (+314.55%)
Mutual labels:  deep-reinforcement-learning, dqn
Drl based selfdrivingcarcontrol
Deep Reinforcement Learning (DQN) based Self Driving Car Control with Vehicle Simulator
Stars: ✭ 249 (+352.73%)
Mutual labels:  deep-reinforcement-learning, dqn
dqn-obstacle-avoidance
Deep Reinforcement Learning for Fixed-Wing Flight Control with Deep Q-Network
Stars: ✭ 57 (+3.64%)
Mutual labels:  deep-reinforcement-learning, dqn
Rainy
☔ Deep RL agents with PyTorch☔
Stars: ✭ 39 (-29.09%)
Mutual labels:  deep-reinforcement-learning, dqn
DQN-using-PyTorch-and-ML-Agents
A simple example of how to implement vector based DQN using PyTorch and a ML-Agents environment
Stars: ✭ 81 (+47.27%)
Mutual labels:  deep-reinforcement-learning, dqn
connect4
Solving board games like Connect4 using Deep Reinforcement Learning
Stars: ✭ 33 (-40%)
Mutual labels:  double-dqn, dueling-dqn
Drl
Repository for codes of 'Deep Reinforcement Learning'
Stars: ✭ 172 (+212.73%)
Mutual labels:  deep-reinforcement-learning, dqn
Machine Learning Is All You Need
🔥🌟《Machine Learning 格物志》: ML + DL + RL basic codes and notes by sklearn, PyTorch, TensorFlow, Keras & the most important, from scratch!💪 This repository is ALL You Need!
Stars: ✭ 173 (+214.55%)
Mutual labels:  deep-reinforcement-learning, dqn

Playing Super Mario Bros. With Deep Reinforcement Learning

Build Status

Using (Double/Dueling) Deep-Q Networks to play Super Mario Bros.

DDQN-SMB-1-4

Installation

virtualenv

Use virtualenv to contain the Python environment to a single local installation of python3:

Setup

To setup the virtual environment:

virtualenv -p python3 .env
source .env/bin/activate

When you've concluded the session:

deactivate

Dependencies

requirements.txt lists the Python dependencies for the project with frozen versions. To install dependencies:

python -m pip install -r requirements.txt

NOTE if you're NOT using virtualenv, ensure that python aliases python3; python2 is not supported.

Usage

The following instructions assume you have a shell running at the top level directory of the project. For comprehensive documentation on command line options, run the following:

python . -h

Test Cases

To execute the unittest suite for the project run:

python -m unittest discover .

Random Agent

To play games with an agent that makes random decisions:

python . -m random -e <environment ID>
  • <environment ID> is the ID of the environment to play randomly.

Example

For instance, to play a random agent on Pong:

python . -m random -e Pong-v0

Training A Deep-Q Agent

To train a Deep-Q agent to play a game:

python . -m train -e <environment ID>
  • <environment ID> is the ID of the environment to train on.

Example

For instance, to train a Deep-Q agent on Pong:

python . -m train -e Pong-v0

Playing With A Trained Agent

To run a trained Deep-Q agent on validation games:

python . -m play -o <results directory>
  • <results directory> is a directory containing a weights.h5 file from a training session

Example

For instance, to play a Deep-Q agent on Pong:

python . -m play -e results/Pong-v0/DeepQAgent/2018-06-07_09-24
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].