Minimalistic gridworld reinforcement learning environments
Project description
MiniGrid (formerly gym-minigrid)
There are other gridworld Gymnasium environments out there, but this one is designed to be particularly simple, lightweight and fast. The code has very few dependencies, making it less likely to break or fail to install. It loads no external sprites/textures, and it can run at up to 5000 FPS on a Core i7 laptop, which means you can run your experiments faster. A known-working RL implementation can be found in this repository.
Requirements:
- Python 3.7 to 3.10
- Gymnasium v0.26
- NumPy 1.18+
- Matplotlib (optional, only needed for display) - 3.0+
Please use this bibtex if you want to cite this repository in your publications:
@misc{minigrid,
author = {Chevalier-Boisvert, Maxime and Willems, Lucas and Pal, Suman},
title = {Minimalistic Gridworld Environment for Gymnasium},
year = {2018},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/Farama-Foundation/MiniGrid}},
}
List of publications & submissions using MiniGrid or BabyAI (please open a pull request to add missing entries):
- History Compression via Language Models in Reinforcement Learning. (Johannes Kepler University Linz, PMLR 2022)
- Leveraging Approximate Symbolic Models for Reinforcement Learning via Skill Diversity (Arizona State University, ICML 2022)
- How to Stay Curious while avoiding Noisy TVs using Aleatoric Uncertainty Estimation (University College London, Boston University, ICML 2022)
- In a Nutshell, the Human Asked for This: Latent Goals for Following Temporal Specifications (Imperial College London, ICLR 2022)
- Interesting Object, Curious Agent: Learning Task-Agnostic Exploration (Meta AI Research, NeurIPS 2021)
- Safe Policy Optimization with Local Generalized Linear Function Approximations (IBM Research, Tsinghua University, NeurIPS 2021)
- A Consciousness-Inspired Planning Agent for Model-Based Reinforcement Learning (Mila, McGill University, NeurIPS 2021)
- SPOTTER: Extending Symbolic Planning Operators through Targeted Reinforcement Learning (Tufts University, SIFT, AAMAS 2021)
- Grid-to-Graph: Flexible Spatial Relational Inductive Biases for Reinforcement Learning (UCL, AAMAS 2021)
- Rank the Episodes: A Simple Approach for Exploration in Procedurally-Generated Environments (Texas A&M University, Kuai Inc., ICLR 2021)
- Adversarially Guided Actor-Critic (INRIA, Google Brain, ICLR 2021)
- Information-theoretic Task Selection for Meta-Reinforcement Learning (University of Leeds, NeurIPS 2020)
- BeBold: Exploration Beyond the Boundary of Explored Regions (UCB, December 2020)
- Approximate Information State for Approximate Planning and Reinforcement Learning in Partially Observed Systems (McGill, October 2020)
- Prioritized Level Replay (FAIR, October 2020)
- AllenAct: A Framework for Embodied AI Research (Allen Institute for AI, August 2020)
- Learning with AMIGO: Adversarially Motivated Intrinsic Goals (MIT, FAIR, ICLR 2021)
- RIDE: Rewarding Impact-Driven Exploration for Procedurally-Generated Environments (FAIR, ICLR 2020)
- Learning to Request Guidance in Emergent Communication (University of Amsterdam, Dec 2019)
- Working Memory Graphs (MSR, Nov 2019)
- Fast Task-Adaptation for Tasks Labeled Using Natural Language in Reinforcement Learning (Oct 2019, University of Antwerp)
- Generalization in Reinforcement Learning with Selective Noise Injection and Information Bottleneck (MSR, NeurIPS, Oct 2019)
- Recurrent Independent Mechanisms (Mila, Sept 2019)
- Learning Effective Subgoals with Multi-Task Hierarchical Reinforcement Learning (Tsinghua University, August 2019)
- Mastering emergent language: learning to guide in simulated navigation (University of Amsterdam, Aug 2019)
- Transfer Learning by Modeling a Distribution over Policies (Mila, June 2019)
- Reinforcement Learning with Competitive Ensembles of Information-Constrained Primitives (Mila, June 2019)
- Learning distant cause and effect using only local and immediate credit assignment (Incubator 491, May 2019)
- Practical Open-Loop Optimistic Planning (INRIA, April 2019)
- Learning World Graphs to Accelerate Hierarchical Reinforcement Learning (Salesforce Research, 2019)
- Variational State Encoding as Intrinsic Motivation in Reinforcement Learning (Mila, TARL 2019)
- Unsupervised Discovery of Decision States Through Intrinsic Control (Georgia Tech, TARL 2019)
- Modeling the Long Term Future in Model-Based Reinforcement Learning (Mila, ICLR 2019)
- Unifying Ensemble Methods for Q-learning via Social Choice Theory (Max Planck Institute, Feb 2019)
- Planning Beyond The Sensing Horizon Using a Learned Context (MLMP@IROS, 2018)
- Guiding Policies with Language via Meta-Learning (UC Berkeley, Nov 2018)
- On the Complexity of Exploration in Goal-Driven Navigation (CMU, NeurIPS, Nov 2018)
- Transfer and Exploration via the Information Bottleneck (Mila, Nov 2018)
- Creating safer reward functions for reinforcement learning agents in the gridworld (University of Gothenburg, 2018)
- BabyAI: First Steps Towards Grounded Language Learning With a Human In the Loop (Mila, ICLR, Oct 2018)
This environment has been built as part of work done at Mila. The Dynamic obstacles environment has been added as part of work done at IAS in TU Darmstadt and the University of Genoa for mobile robot navigation with dynamic obstacles.
Installation
There is now a pip package available, which is updated periodically:
pip install minigrid
Alternatively, to get the latest version of MiniGrid, you can clone this repository and install the dependencies with pip3
:
git clone https://github.com/Farama-Foundation/MiniGrid
cd MiniGrid
pip install -e .
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
Built Distribution
File details
Details for the file MiniGrid-2.0.0.tar.gz
.
File metadata
- Download URL: MiniGrid-2.0.0.tar.gz
- Upload date:
- Size: 59.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a42495648eb6904e5bb70d566c2414f859866edb224c0d7f20ab9c090a110785 |
|
MD5 | 809d92603d902652b8ff27f0f819f5a1 |
|
BLAKE2b-256 | 9ed373e032da9b07bd81ef93f745f010c3165c855dc62fc2a763b3654590ed66 |
File details
Details for the file MiniGrid-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: MiniGrid-2.0.0-py3-none-any.whl
- Upload date:
- Size: 78.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c10e10ffe4bb771960dc3b6ce623b2aa7bdf574e363bf58280dfa27268861e22 |
|
MD5 | 1168b31361b299ea18621dde86fbade7 |
|
BLAKE2b-256 | 9876612842099d5a5e1afbc653b4f778520437ada9cbdce82f048dc1a3d9f8ec |