Skip to main content

A package for reinforcement learning (RL) development, featuring classes for Markov Decision Processes (MDPs), agents, and environments. Ideal for creating custom RL environments and experimenting with algorithms. Suitable for researchers, educators, and developers seeking to explore or implement RL applications.

Project description

ReLearn

Introducing a dynamic package designed specifically for the development and implementation of reinforcement learning (RL) projects. This toolkit includes essential classes for modeling Markov Decision Processes (MDPs), agents, and environments, laying the foundation for RL systems. With our package, users have the flexibility to create custom environments, allowing for the exploration and testing of various RL algorithms. Whether you're a researcher, educator, or developer, this package provides the necessary tools to implement reinforcement learning applications.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

Python: This project requires a Python version >=3.9 and <3.13. You can download it from python.org.

This project can be installed using pip directly from PyPI or by cloning the repository from GitHub. Follow the instructions below based on your preferred method.

Installing from PyPI

First, consider creating a virtual environment:

python -m venv venv
source venv/bin/activate  # On Unix/macOS
.\venv\Scripts\activate   # On Windows

To install the package from PyPI, run the following command in your terminal. This is the simplest way to install the latest stable version of the project:

pip install relearn

Make sure you have pip installed and updated to the latest version to avoid any issues.

Installing from GitHub

If you prefer to install the latest development version or want to contribute to the project, you can clone the repository from GitHub and install it manually:

  1. Clone the repository:

    git clone https://github.com/umilISLab/relearn.git
    
  2. Navigate to the project directory:

    cd relearn
    
  3. Consider creating a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Unix/macOS
    .\venv\Scripts\activate   # On Windows
    
  4. Install the project and its dependencies using the preferred method:

    • Dependency Management with Poetry: This project uses Poetry for dependency management and package handling. Ensure you have Poetry installed on your system. For installation instructions, visit the official Poetry documentation.

      To check if you have Poetry installed, run the following command in your terminal:

      poetry --version
      

      If Poetry is installed, you should see the version number in the output. If not, please follow the installation guide provided in the link above. - Installing Dependencies: With Poetry installed, you can install project dependencies by running: shell poetry install

    • If the project uses a requirements.txt:

      pip install -r requirements.txt
      

Verify the Installation

After installation, you can verify that the project is installed correctly by running:

python -c "import relearn; print(relearn.__version__)"

Usage Example

You can find a Recycling Robot example here.

Built With

  • poetry - Dependency Management

Versioning

We use SemVer for versioning.

Authors

  • Elisabetta Rocchetti - Initial work - ISLab

License

This project is licensed under the GNUv3 - see the LICENSE.md file for details

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

relearn-0.1.2.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

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

relearn-0.1.2-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file relearn-0.1.2.tar.gz.

File metadata

  • Download URL: relearn-0.1.2.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/23.2.0

File hashes

Hashes for relearn-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3e750911afb6a1c1ad5f9c2f2fbc13a6ce7e944e866e480559e448a3f92cc17f
MD5 8da830364fc92d1d9cb5fab7063d959d
BLAKE2b-256 780d1babddedd3811eebfa58a47d9ad2aa89858bd5d1b0ba5bada95604e52e72

See more details on using hashes here.

File details

Details for the file relearn-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: relearn-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/23.2.0

File hashes

Hashes for relearn-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a943eaeeb4459ff7c48a8083e11958f2226247ccbcb942ca4cf7ce12f61dcc7
MD5 e17565f3e810659c5ceb70d6956c543a
BLAKE2b-256 8ad5480436066fa11b1983aba62a15a44673d5806415d801433751893171e6c9

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