A simple discounted return calculator for Reinforcement Learning.
Project description
rl-discounted-return
A lightweight package to compute discounted cumulative returns — a key concept in Reinforcement Learning (RL).
Example Usage
from rldiscountedreturn_colab import discounted_return
rewards = [1, 1, 1, 1, 1]
gamma = 0.9
print(discounted_return(rewards, gamma)) # Output: 4.095
Author: Jinal Chhajer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rl_discounted_return-0.1.0.tar.gz.
File metadata
- Download URL: rl_discounted_return-0.1.0.tar.gz
- Upload date:
- Size: 6.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef312dcda3564b3a0c6996874da58b5d2a4a2fa18ea4136af5e05b065e901f22
|
|
| MD5 |
88b884edd7863e0283d3c3f3a0160eb1
|
|
| BLAKE2b-256 |
3a556fcdf33921d952232a2539645e3d18d41c0a2a2a0cd439bcd099e25bdec7
|
File details
Details for the file rl_discounted_return-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rl_discounted_return-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91ddec786143b85068db223b5a2d48a3659adad544b76d9d9cbd476766929d5a
|
|
| MD5 |
df3cd5a04a20902c3c2b79b254513207
|
|
| BLAKE2b-256 |
89d7a5754efa11d5364669dbef7df5a0681c6f921e6ea9bf721172a3967dd364
|