Skip to content

JeetG-22/cs520

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

138 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running the Program

The program should be run from space.py. Answers to questions given in the writeup are contained in this file.

Create Python Virtual Environment

In this project, we utilized Python virtual enviroments to keep pip packages consistent across all machines, while avoiding externally managed environment errors.

To create it on MacOS, we use:

source create_venv.sh

which implicitly runs:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Unfortunately, this only runs on MacOS (bash/zsh). If you are running Windows command prompt you have to type:

python3 -m venv venv
.\venv\Scripts\activate.bat

If running Windows PowerShell type:

python3 -m venv venv
.\venv\Scripts\Activate.ps1

If we want to update the requirements.txt file with the packages that we've installed with pip thus far, we can run:

pip freeze > requirements.txt

and then if we need to update the requirements again later:

pip install -r requirements.txt

Explanation

P3

We want to localize the target cell (figure out the exact position of the "bot") in a maze-like 2-D numpy matrix (the ship) in the least number of moves possible. We are not allowed to traverse the grid to find out where the target cell is, but rather are given some set of candidate open cells and have to figure out which one the bot is in, using the fact that we can attempt to move in a given direction, and if the movement is blocked, the bot will remain in the same cell. The bot has access to a map of the ship, is able to move in each of the cardinal directions, and starts with a set of possible locations. P3 involves creating a Pytorch model to localize the bot in the least number of moves possible and attempt to learn the "optimal" strategy for doing so.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors