soumith / rltorch

A RL package for Torch that can also be used with openai gym

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This package is a basic Reinforcement Learning package written in LUA for Torch. It implements some simple environments and learning policies (Policy Gradient and Deep Q Learning). It also can be easily used with the OpenAI Gym package by using lutorpy (example given in the opeanaigym directory).

Tutorials are provided in the tutorials directory

Dependencies

Lua:

  • Torch7
  • nn, dpnn
  • logroll, json, alewrap
luarocks install nn
luarocks install dpnn
luarocks install logroll
luarocks install json
git clone https://github.com/deepmind/xitari.git && cd xitari && luarocks make && cd .. && rm -rf xitari
git clone https://github.com/deepmind/alewrap.git && cd alewrap && luarocks make && cd .. && rm -rf alewrap

For using openAI Gym:

  • openai gym
  • lutorpy

Installation

  • cd torch && luarocks make
  • Install lutorpy and OpenAI Gym
  • lauch the python script (example.py)

WARNING : If you use an openAI Gym ATARI environment, a new sensor must be developed: it will be avaiable in the next few days (since openAI and alewrap do not store the ATARI images in the same format)

Author: Ludovic DENOYER

About

A RL package for Torch that can also be used with openai gym


Languages

Language:Lua 95.7%Language:Python 3.5%Language:CMake 0.8%