Giter Site home page Giter Site logo

rc_rl's Introduction

Interfacing with VGDL

Instructions to interface with VGDL and to run DeepRL Models.

Gym-like API to run your own models

The Methods are defined in VGDLEnvAndres.py :

#Configs to set
self.trial_num = 1002
self.record_flag = 0 #1 to generate VGDL files (i.e. reward_histories used for figures)

#Attributes
self.game_name
self.game_over
self.action_space
self.observation_space

#Methods
self.step(action)
self.reset()
self.set_level(level,steps)
self.get_level()

To run Deep RL models

Installation

sudo apt-get update && sudo apt-get install python python2.7 python-pip virtualenv git wget emacs cmake zlib1g-devcmake zlib1g-dev

pip install wheel
pip install -r requirements

#FOR Dopamine:
pip install absl-py atari-py gin-config gym opencv-python tensorflow-gpu

Run Dopamine

Clone this Repo and our version of Dopamine from https://github.com/ACampero/dopamine as a submodule as in the Repo

python -um dopamine.discrete_domains.train \
  --base_dir=./tmp/dopamine/aliens \
  --gin_files='dopamine/agents/rainbow/configs/rainbow_aaaiAndres.gin' \
  --gin_bindings='create_atari_environment.game_name="VGDL_aliens"'

Run Pytorch Implemenation of DDQN

python runDDQN.py -game_name aliens

rc_rl's People

Contributors

acampero avatar lcary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.