Skip to main content

Python package for the Reinforcement Learning course at Durham University

Project description

Reinforcement Learning Durham

tests codecov

build PyPI version

doc License: GPL v3

A Python package for the Reinforcement Learning courses at Durham University.

See the notebooks and gallery for some examples.

Installation

Start with a clean Python 3.10 environment (recommended) and install/upgrade via terminal as

pip install swig
pip install --upgrade rldurham

or Jupyter notebook as

!pip install swig
!pip install --upgrade rldurham

Known Issues

  • Have you tried turning it off and on again? Restarting your kernel and/or restarting the install from a fresh and clean Python 3.10 environment resolves most problems.
  • Check the error messages! In many cases, they provide useful information and in many cases the problem is not with rldurham but either a general Python problem or a problem with gymnasium.
  • On NCC you need to create your own custom environment/kernel (as for the deep learning coursework); you cannot pip install ... things in the default environment (it may first look as if you can, but then the packages cannot be found).
  • Problems related to swig
    • Remember that swig has to be explicitly installed before rldurham (as above) because of dependency issues with the packages used by rldurham, in particular gymnasium.
    • Under python 3.11, swig may need to be installed using system tools (i.e. not via pip), better avoid 3.11 and use 3.10 instead.
    • If you see errors mentioning Box2D, this is related to gymnasium, which requires Box2D, which requires swig, which frequently causes problems. Installing from a clean environment, first installing swig, and using Python 3.10 (avoiding higher versions) are the best ways to avoid these problems.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rldurham-0.1.1.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rldurham-0.1.1-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file rldurham-0.1.1.tar.gz.

File metadata

  • Download URL: rldurham-0.1.1.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rldurham-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d8ea449ae408ff9dbf61e45f9ca32cacf7616cf8d36db378a3e8cb6fdd5ead63
MD5 56c0af9c19fe0dc41a276ae0fab4fddb
BLAKE2b-256 9469a348fd22e85128fb57565edbf79decc01952a8d1f583a0de79c1a3ba9416

See more details on using hashes here.

File details

Details for the file rldurham-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rldurham-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rldurham-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86d6eb376ebe9f454559b52fb0514b5abd47ef3385d555f885d6b7e5040814b4
MD5 a499c757dd452ecf4fa0c18703f406da
BLAKE2b-256 aae82b279576e553fef7a58958eedb9d2e4387c2a2a95f5510a705cea12b37ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page