Skip to main content

Simple RL utilities for epsilon-greedy and TD error

Project description

# RL Simple Package by Teerth

A simple Python package for Reinforcement Learning utilities created by **Teerth** for academic assignment.

## Installation

pip install rl_simple_teerth

## Features

- **Epsilon-Greedy Action Selection**: Balance exploration and exploitation

- **TD Error Calculation**: Compute temporal difference errors

## Usage

from rl_simple import epsilon_greedy_action, calculate_td_error

Epsilon-greedy selection

Q_values = [0.1, 0.8, 0.3]

action = epsilon_greedy_action(Q_values, epsilon=0.1)

print(f"Selected action: {action}")

TD error

td_error = calculate_td_error(reward=1.0, gamma=0.9,

current_value=0.5, next_value=0.8)

print(f"TD Error: {td_error}")

## Author

**Teerth**

Created for Reinforcement Learning Assignment

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_simple_teerth-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

rl_simple_teerth-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rl_simple_teerth-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for rl_simple_teerth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b2128612c32922c8ce69dd9cfa57af809d3356530e0308f39e6fa8f31f074c06
MD5 b14aad9010800c914cd41a1f7c9446c8
BLAKE2b-256 fbf9a2ffbc3ae5004c0cb05eac685f22aea0f3156f90cc3034a1d030a4ca84e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rl_simple_teerth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8d0fcf235642ed258bc3768e8efc86b8cbd00f20d12d5786d14f901b7da16e0
MD5 0bb9872b6aac8d8f7ac2e6e38a1b719e
BLAKE2b-256 adc2b0585544804a3fe9796e46faea83dd3ac1c43a61b269af09d0eb33355909

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