Skip to main content

A tiny epsilon-greedy action selection function for reinforcement learning.

Project description

epsilonpolicy

A minimal epsilon-greedy action selection function.

Install

pip install epsilonpolicy
from epsilonpolicy import epsilon_greedy

Q = {}
actions = ["left", "right", "up", "down"]
action = epsilon_greedy(Q, state="S", actions=actions, epsilon=0.2)
print(action)

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

epsilonpolicy-0.1.1.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.

epsilonpolicy-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for epsilonpolicy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5af807db689dcc5863d2e03bcc1dd3ee669b087d4b4bdcc0103a60d88ccbe0ca
MD5 b20bda7b6c2b9479de06899b4cae8319
BLAKE2b-256 d0496198a7c63c434d13721423c543acbb34617f6056ce70368441eda09b80bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: epsilonpolicy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for epsilonpolicy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbc111809a7d38d73e749b5cf8f40a7f60a0cb3c30c8e96a1151ad6ec441ce19
MD5 b0f36bca9c29b12020a4cf9be3d37f6c
BLAKE2b-256 bdf9bc32aac6cead6fa2d870cdc96be7662ef5a7a4740b5ed2e5686421126dbe

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