Skip to content

track and log actions for a human player via OpenAI Gym

Notifications You must be signed in to change notification settings

alvinwan/gym-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Gym Tracker

Tracks and logs actions for a human player. This repository also includes ~90,000 timesteps of human gameplay across 22 episodes, with an average of ~880 points. (The random agent scores an average of ~150 points.)

Disclaimer: I was the human player, and my gameplay isn't the best. If you're a SpaceInvader master or have logged data for other games, I would be more than happy to include your logs.

Logs

The logs are written to .npz - Numpy's compressed data file extension - and can be read using numpy utilities.

Install

The project is written in Python 3 and is not guaranteed to successfully backport to Python 2.

(Optional) We recommend setting up a virtual environment.

virtualenv gymt --python=python3
source activate gymt/bin/activate

Say $GYMT_ROOT is the root of your repository. Navigate to your root repository.

cd $GYMT_ROOT

We need to setup our Python dependencies.

pip install -r requirements.txt

Run

To run with the default game (SpaceInvaders), use the following

python main.py

Here are full usage instructions:

Usage:
    main.py [options]

Options:
    --env_id=<id>       Environment ID [default: SpaceInvadersNoFrameskip-v4]
    --skip-control=<n>  Use previous control n times. [default: 0]
    --rollout-time=<t>  Max. Amount of time to play the game for [default: 100000]
    --logdir=<path>     Path to root of logs directory [default: ./logs]
    --random            Use a random agent.

About

track and log actions for a human player via OpenAI Gym

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages