Skip to main content

Extended Atari Learning Environments

Project description

HackAtari

This repository relies on OCAtari, a fork of the OpenAI Gym Atari environment. The OCAtari repository can be found here.

Installation

To install the OCAtari environment, please follow the instructions in the OCAtari repository, or simply run the following command:

pip install ocatari

To install the hackatari environment, run

pip install hackatari

or clone this repository and run the following command:

git clone https://github.com/k4ntz/HackAtari
cd HackAtari
pip install -e .

Usage

To use the HackAtari environment, simply import it as you would any other OpenAI Gym environment: You can run the run.py file to start the original game or any of the modified versions. E.g.:

python run.py -g Freeway # Starts normal Freeway (random agent)
python run.py -g Freeway -hu # Starts Freeway with the cars being invisible (interactive/human playing mode)
python run.py -g Freeway -m color8 # Starts Freeway with the cars of color #8 being (i.e. invisible) (random agent)
python run.py -g Freeway -m stop3 # Starts Freeway with stopping mode #3 (i.e. static cars) (random agent)
python run.py -g Seaquest -m oxygen disable_enemies gravity # Starts Seaquest with infinite oxygen, no enemy, gravity (random agent)
python run.py -g Kangaroo -m random_init disable_monkeys # Starts Kangaroo with random initial floor and no monkeys (random agent)

See the documentation or this markdown file for more information on the available modifications.

Cite our work

@article{delfosse2024hackatari,
  title={HackAtari: Atari Learning Environments for Robust and Continual Reinforcement Learning},
  author={Delfosse, Quentin and Bl{\"u}ml, Jannis and Gregori, Bjarne and Kersting, Kristian},
  journal={arXiv preprint arXiv:2406.03997},
  year={2024}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hackatari-0.0.4.tar.gz (23.8 kB view details)

Uploaded Source

File details

Details for the file hackatari-0.0.4.tar.gz.

File metadata

  • Download URL: hackatari-0.0.4.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for hackatari-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7453b28e53ea4acb58fe5d02acbae660e51d017a104beeb96c27409c6965abff
MD5 acd3d0acf283c7200cdbecfdda4c802f
BLAKE2b-256 46d9621aa0fe25c0a5cdb5ec39e3dedcb627e2846c21e19b079875ef0bc5a5ec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page