Giter VIP home page Giter VIP logo

reinforcement-learning's Introduction

Reinforcement-Learning

This repository includes Python implementations of Sutton's & Barto's Reinforcement Learning Book (Ed. 2) algorithms. The latest draft of the book's second version can be found in this link. In this repository you may also find the solutions of the book exercises that I've been implementing.

Structure

Folder

This repository is divided into several folders, each for a chapter of the book. In general, every episode is related to a set of Reinforcement Learning algorithms (e.g. Time Difference Methods).

Additionally, in all chapter-directories, a notebooks sub-folder is present. Such files are interactive Jupyter Notebooks, where users can interact with OpenAI environments and the algorithms available.

Files

The following Python files, found in the home directory, are the most relevant for this project:

classes.py Contains the implementation of common models used in Reinforcement Learning tasks. An example of this are Policy classes (e.g. e-greedy), Action Value Functions, and relevant data structures (e.g. N-Step Memory).

utils.py Contains auxiliary methods such as printing and displaying environment interaction logs, which are used by other modules.

visualize.py Contains methods that enable the visualization of statistics calculated from the experience of agents that have ran in environments.

Install

In your terminal, run:

git clone [email protected]:diegoalejogm/Reinforcement-Learning.git
cd Reinforcement-Learning

Then, install all dependencies with PIP using:

pip install -r requirements.txt

And run a jupyter process in order to visualize and interact with all the available Jupyter notebooks:

jupyter notebook .

To Do List

This section is for myself, but feel free to fork the repo and add your contributions!

  • Add Tests to Data Structures and Models.

License

MIT

reinforcement-learning's People

Contributors

diegoalejogm avatar

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.