Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rl_discounted_return-0.1.0.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

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

rl_discounted_return-0.1.0-py3-none-any.whl (7.1 MB view details)

Uploaded Python 3

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

Hashes for rl_discounted_return-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef312dcda3564b3a0c6996874da58b5d2a4a2fa18ea4136af5e05b065e901f22
MD5 88b884edd7863e0283d3c3f3a0160eb1
BLAKE2b-256 3a556fcdf33921d952232a2539645e3d18d41c0a2a2a0cd439bcd099e25bdec7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rl_discounted_return-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91ddec786143b85068db223b5a2d48a3659adad544b76d9d9cbd476766929d5a
MD5 df3cd5a04a20902c3c2b79b254513207
BLAKE2b-256 89d7a5754efa11d5364669dbef7df5a0681c6f921e6ea9bf721172a3967dd364

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