Coder Social home page Coder Social logo

rl-maze-solver's Introduction

Goal-Reaching DQN

Documents

You may find in this repository all the files that are necessary for completing the coursework:

  • Task.pdf containing all the main coursework instructions and questions.
  • starter_code.py providing Python 3 code which you will build upon during this tutorial and the associated coursework.
  • environment.py in which the environment is implemented. This file should not be modified.
  • torch_example.py which gives an example of a supervised learning experiment in PyTorch (see section 2 in Tutorial.pdf for more information).

Requirements

You need to use Python 3.6 or greater.

Installing the environment on a Unix system

To install the libraries, start by cloning this repository and enter the created folder:

git clone https://github.com/alvaroprat97/RL.git

Virtual environment (called venv here):

python3 -m venv ./venv 

Enter the environment:

source venv/bin/activate

And install the libraries in the environment by launching the following command:

pip install -r requirements.txt

This will install the following libraries (and their dependencies) in the virtual environment venv:

  • torch
  • opencv-python
  • numpy
  • matplotlib

How to run a script ?

Before launching your experiment, be sure to use the right virtual environment in your shell:

source venv/bin/activate  # To launch in the project directory

Once you are in the right virtual environment, you can directly launch the scripts by using one of the following command:

python torch_example.py  # To launch the pytorch example script
python starter_code.py  # To launch the coursework script

It is also possible to use the virtual environment tools already included in IDEs (such as PyCharm).

Leaving the virtual environment

If you want to leave the virtual environment, you just need to enter the following command:

deactivate

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.