Skip to main content

Epsilon-Greedy

A minimal, tested epsilon-greedy action selector for Reinforcement Learning. Includes action masking and tie-aware probability allocation.

Usage

from epsgreedy import epsilon_greedy

action_values = [1.2, 0.5, 1.2, -0.3]   # Q(s, ·)
# Mask out invalid actions (e.g., action 1 is invalid here)
invalid = [False, True, False, False]

a, p = epsilon_greedy(action_values, epsilon=0.1, invalid=invalid)
print(a, p)  # chosen action index, probabilities over actions

Install

pip install aditya-epsgreedy-20251112

Testing

pip install pytest
pytest -q

License

MIT

Metadata

Release files for aditya-epsgreedy-20251112 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aditya-epsgreedy-20251112 0.0.1
File Size Uploaded Provenance Actions
aditya_epsgreedy_20251112-0.0.1.tar.gz 3.2 kB Without provenance Details for aditya_epsgreedy_20251112-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aditya-epsgreedy-20251112 0.0.1
File Interpreter ABI Platform Actions
aditya_epsgreedy_20251112-0.0.1-py3-none-any.whl Python 3 none any Details for aditya_epsgreedy_20251112-0.0.1-py3-none-any.whl

Total release size: 7.0 kB

Release files / aditya_epsgreedy_20251112-0.0.1.tar.gz

Download URL aditya_epsgreedy_20251112-0.0.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
55e498bff3e0ff86de5592cdc305868c995f0341aeec42a55217c931a386134b
BLAKE2b-256 checksum
How to use checksums
cdfab1207ade52de6b460f3660ee761cd3d844d619168f5a033e2b0e01c0b346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / aditya_epsgreedy_20251112-0.0.1-py3-none-any.whl

Download URL aditya_epsgreedy_20251112-0.0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d448ae4b6319b43a2f77ecf684afe425165206fa231a9aaf7a923005bd22ea00
BLAKE2b-256 checksum
How to use checksums
bcbe935452b267eb19f8dad114703f222a14646dc25cf65deb6c72739eeb6fdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for aditya-epsgreedy-20251112 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page