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.0.tar.gz (32.7 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.0-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rldurham-0.1.0.tar.gz
  • Upload date:
  • Size: 32.7 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.0.tar.gz
Algorithm Hash digest
SHA256 501fc7f3ef83e68a1e82bda1cabd83a45c2b069179c9d39243db2c1cb3b9de79
MD5 1f31b1837932fd5c5ca98ff616bafa9f
BLAKE2b-256 bfb00b8f3e170590b0e3c008aa12cd0a59f6c42807349b73fabda2f5278d2fdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rldurham-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72e3a75dcf14e36379af91a7ef588f48d20e699ab6007a280a97496f9b4a5f15
MD5 e8da9ae8aaf6186c9e4ef1c9e2460303
BLAKE2b-256 d39cfca4a384c078873786578de07e2591f3e6b1937dd33e48b5edd8d8cac436

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