Torch Also make sure you've setup the game environment using these instructions.
Most lua packages can be installed using luarocks install <pkg>
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:
- (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.
- STEP_SIZE: This defines the number of steps taken by the agent in the game in an epoch.
- max_steps: Maximum number of steps per episode of gameplay.
- recurrent: Set this to 1 if using the LSTM for the Representation Generator.
- bigram: Set this to 1 to use a bag-of-bigrams representation.
- netfile: Choose the model to use for the Representation Generator. Remember to set the
recurrent
option appropriately.