8000 GitHub - qxcv/jiminy-cricket: Jiminy Cricket Environment (NeurIPS 2021)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

qxcv/jiminy-cricket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jiminy Cricket

This is the repository for "What Would Jiminy Cricket Do? Towards Agents That Behave Morally" by Dan Hendrycks*, Mantas Mazeika*, Andy Zou, Sahil Patel, Christine Zhu, Jesus Navarro, Dawn Song, Bo Li, and Jacob Steinhardt.

How To Use

To install:

cd /path/to/this/repo.git
# install editable copy of Jiminy Cricket using setup.py file
pip install -e .

To initialize an environment:

from jiminy_cricket.annotated_env import AnnotatedEnv

game_name = 'zork1'  # change to desired game
env = AnnotatedEnv(game_name=game_name)

Contents

  • annotated_games: This contains the game folders for Jiminy Cricket. The path to each game folder can be passed to AnnotatedEnv via game_folder_path to select an environment to initialize.
  • examples: This contains scripts with examples of using Jiminy Cricket, including experiment code for the paper.
  • src: main Python interface code for Jiminy Cricket.
  • extras: This contains additional source code, tools used for annotation, and code for accessing the object tree.

Citation

If you find this useful in your research, please consider citing:

@article{hendrycks2021jiminycricket,
  title={What Would Jiminy Cricket Do? Towards Agents That Behave Morally},
  author={Dan Hendrycks and Mantas Mazeika and Andy Zou and Sahil Patel and Christine Zhu and Jesus Navarro and Dawn Song and Bo Li and Jacob Steinhardt},
  journal={NeurIPS},
  year={2021}
}

About

Jiminy Cricket Environment (NeurIPS 2021)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ZAP 52.0%
  • ZIL 47.3%
  • Other 0.7%
0