Giter Site home page Giter Site logo

purl's Introduction

purl

Pathfinding Using Reinforcement Learning

Algorithms

MDP (using the FullyObsWrapper)

  • Q-table
  • Q-network

POMDP

  • PPO
  • DQN (with the Double DQN extension) - work in progress, not currently working as intended
  • DRQN - work in progress, not currently working as intended

Getting Started

Prerequisites

python + pip, version 3.6 or greater

Installing

Note: It's recommended that you install the Python dependencies in a virtual environment. virtualenv and virtualenvwrapper:

pip install virtualenv
pip install virtualenvwrapper

Note: To get matplotlib to work on a Mac with a virtual environment you have to use venv instead

Setting up a virtual environment

mkvirtualenv purl

or with venv:

python -m venv purl-venv

Installing Python dependencies

First, switch to the virtual environment:

workon purl

or with venv:

source purl-venv/bin/activate

Note: You can set up an alias in your shell to make the virtual environment more accessible, e.g alias actpurl='source /path/to/purl/purl-venv/bin/activate'

Then, install the dependencies by running:

pip install -r requirements.txt

or if you have pip-sync installed:

pip-sync

Running purl

There are two main subcommands to PURL

train

To train a model, run:

./purl train

For example, to train a model using the PPO algorithm on the MiniGrid-LavaCrossingS9N1-v0 environment, use the following arguments:

./purl train --algorithm ppo --environment MiniGrid-LavaCrossingS9N1-v0

visualize

To visualize a model, run:

./purl vizualize

Development

Updating dependencies

Python dependencies are managed by pip-compile

To add a new package, simply add it to the list in requirements.in.

You then update the requirements.txt-file by running

pip-compile --output-file requirements.txt requirements.in

Built With

  • gym-minigrid - Minimalistic gridworld environment for OpenAI Gym
  • PyTorch - Tensors and Dynamic neural networks in Python

Authors

  • Anne Engström
  • Joel Lidin
  • Gustav Molander
  • Olle Månsson
  • Noa Onoszko
  • Hugo Ölund

License

This project is licensed under the MIT License - see the LICENSE file for details

purl's People

Contributors

anneen avatar joellidin avatar ollema avatar olundhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

spov-research

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.