Skip to content

djjh/reinforcement-learning-labs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reinforcement Learning Labs

Exercises in reinforcement learning.

Setup

Get the Code

  1. Clone Repository.
    git clone https://github.com/djjh/reinforcement-learning-labs
  2. Go to working directory. All steps assume you are working from /path/to/repo-directory.
    cd reinforcement-learning-labs

Install Pyenv

brew install pyenv

Install Python Version

  1. Install required headers on Mac OSX Mojave. Without this step, you may see this error while installing python versions: 'zipimport.ZipImportError: can't decompress data; zlib not available.
    open /Library/Developer/CommandLineTools/Packages/ macOS_SDK_headers_for_macOS_10.14.pkg
    Sources:
  2. Install python 3.6.3. On Mac OSX you must also enable a framework build to use matplotlib.
    env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.3
    Sources:

Setup Virtual Python Environment

  1. Enable the new version of python you just installed.

    pyenv local 3.6.3

    If you want to use this new version by default, then:

    pyenv global 3.6.3
  2. Create the virtual environment. Note that you must use venv to be able to use the framework build of python you just installed.

    cd /path/to/repo-directory
    mkdir virtual-environment
    cd virtual-environment
    python -m venv --prompt reinforcement-learning-labs .
  3. Enable the virtual environment.

    source bin/activate
  4. Install dependencies using pip.

    pip install -e ..

Usage

Go to working directory

All steps assume you are in working directory /path/to/repo-directory.

cd reinforcement-learning-labs

Enable Python Version

pyenv local 3.6.3

Enable Virtual Environment

source virtual-environment/bin/activate

Run Experiments

To run an experiment:

python -m experiments.<experiment_name>  # e.g. python -m experiments.03_basic

Development

Notes

About

Exercises in reinforcement learning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages