Coder Social home page Coder Social logo

ml-lab / text-world-player Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karthikncode/text-world-player

0.0 3.0 0.0 100 KB

Framework and model code for the paper "Language Understanding for Text-based Games using Deep Reinforcement Learning", EMNLP 2015

Home Page: http://arxiv.org/pdf/1506.08941v2.pdf

License: MIT License

Lua 95.12% Python 2.17% Shell 2.71%

text-world-player's Introduction

Prerequisites

Torch
Also make sure you've setup the game environment using these instructions.

Lua Package requirements

  1. luasocket
  2. rnn
  3. underscore

Most lua packages can be installed using luarocks install <pkg>

Runtime options

run_cpu has the list of user-defined settings used by the program. You can run the script as ./run_cpu <game_num> where <game_num> would be 1,2,3,etc. This allows us to choose the game server if multiple are running at the same time. See the script start.sh in the text-world code for details on starting multiple game servers.

The main options you should care about inside the run_cpu file are:

  1. (important) text_world_location: Set this to the location of the text-world directory on your machine. You should have cloned the directory from here.
  2. STEP_SIZE: This defines the number of steps taken by the agent in the game in an epoch.
  3. max_steps: Maximum number of steps per episode of gameplay.
  4. recurrent: Set this to 1 if using the LSTM for the Representation Generator.
  5. bigram: Set this to 1 to use a bag-of-bigrams representation.
  6. netfile: Choose the model to use for the Representation Generator. Remember to set the recurrent option appropriately.

text-world-player's People

Contributors

karthikncode avatar ljm342 avatar mrkulk 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.