Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.86 KB

README.md

File metadata and controls

69 lines (53 loc) · 1.86 KB

Dynamic Programming for Minigrid Environment

Important Code Files

  1. main.py
  2. trial1.ipynb

How to Run

cd /path/to/dir/code 
python3 main.py ### Generates all gifs for the dynamic and the static environments

Dependencies

A comprehensive list of dependencies is added in the attached requirements.txt file given in the folder </path/to/dir/code>/code/starter_code/. Some important packages are -

numpy
matplotlib
minigrid
imageio

To install the required dependencies, we can create a new mamba (or conda) environment named <env> .

pip install -r requirements.txt ## Replace with conda if preferred

Outputs

The file main.py creates gif visualization of the trajectories for the known environment and random environment cases.

The file trial1.ipynb does the same but in an interactive jupyter notebook for better control.

File Structure

.
├── code
│   └── starter_code
│       ├── create_env.py
│       ├── doorkey.py
│       ├── envs
│       ├── example.py
│       ├── gif
│            └── ## Result gifs from all environments
│       ├── main.py
│       ├── __pycache__
│       ├── README.md  ## Readme for the project problem statement
│       ├── requirements.txt
│       ├── trial1.ipynb
│       └── utils.py
├── ECE276B_PR1.pdf
├── environment.yml
└── README.md ## Output Readme for the work done