Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.36 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.36 KB

RL_Easy21

This folder contains the implementation of the Easy21 assignment of David Silver's Reinforcement Learning course.

Dependencies

The script makes use of the following dependencies, which are to be installed by the user using the standard pip module. These dependencies were tested under Ubuntu 18.04 and using Python3.

Installation

  1. Create a virtual environment:

    $ virtualenv pyeasy21
    
  2. Activate the virtual environment:

    $ source pyeasy21/bin/activate
    
  3. Install all the dependencies necessary for running RL algorithms and plot results:

    $ pip install -r requirements.txt
    $ pip install -e gym-easy21
    

The gym-easy21 environment is OpenAI Gym compatible. You can create an instance of it with: python gym.make('gym_easy21:easy21-v0')

Run

The following scripts implements the 3 algorithms required by the assignment:

  • mc.py: Monte Carlo control
  • sarsa_lambda.py: TD Learning
  • linear_approx.py: Linear Function Approximation