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.1.tar.gz (7.8 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.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rl_problems-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 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.1.tar.gz
Algorithm Hash digest
SHA256 55bcf46738f57f2f6cc340a5b1cdcd5fdd34b57fe959e0ebcb9dfa11cae31324
MD5 57191ccd49b5b1786b06f6c8d38eb867
BLAKE2b-256 4ef3040266656b1c38ef18ec7a9f48915b94a02900f38c872c539a1fd73a8aa2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rl_problems-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b45d16bb6abb8da6a91ed14a7d342250bbb1bfc76c46e55aa374ce510544f4
MD5 12ab6ec7fc6c1e69fe43027db6b374b8
BLAKE2b-256 039481884a82cb2bc9625a561f55fecf528b0f782ba355911413df0ef77cc8dd

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