Skip to main content

Implementations and experiments for classic reinforcement learning problems, including multi-armed bandits, epsilon-greedy strategies, and other RL algorithms for learning and evaluation.

Project description

RL-Problems

RL-Problems is a Python package that provides clean and modular implementations of classic Reinforcement Learning (RL) algorithms. The package is designed to make RL experiments and learning accessible, with functions and classes that can be imported and used directly, similar to standard Python libraries like NumPy. It focuses on clarity, reusability, and extendability, making it suitable for both beginners and researchers who want to experiment with RL strategies.

Currently, the package includes K-Armed Bandits with standard epsilon-greedy and contextual strategies, as well as linear and exponential epsilon decay variants for exploration control. Each algorithm is implemented as a class or function, allowing users to quickly test different RL scenarios, track rewards, and analyze arm selection behavior. Future updates will expand the library with more RL algorithms and evaluation utilities.

Examples

from RL_Problems.Bandit_Problem.linear_decreasing import LinearDecresingEpsilonBandit

s1 = LinearDecresingEpsilonBandit(n_runs=1000,epsilon_start=1.0,epsilon_end=0.01,num_arms=10)

results = s1.run_linear_epsilon_decreasing()
print(results)

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

rl_problems-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

rl_problems-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rl_problems-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for rl_problems-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5bccb69807f0bacb075c470b77e8d65de09c91c0cda02ab48aeb75dfa20c85f4
MD5 e7e8396d30bdbbda1deca7f42c906a60
BLAKE2b-256 f5f1dfb23ba36aef3e196f7d9fed4b3e9aa9bfe322f7fcfc0efea647525bb21a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rl_problems-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for rl_problems-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecb0e68f9c9a41fc102486379ad31dc0d72884c4c6a831f1ca27241e609f4b5e
MD5 0741892dff91dfe2a4731adf6556bd2c
BLAKE2b-256 151c67f2d2202760cceafacc8201d336f81c7daf3e7deee794402229c23eb7c9

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