A tiny Q-learning update function for RL beginners.
Project description
simpleqlearn
A minimal, well-documented Q-learning table update function.
Install
pip install simpleqlearn
from simpleqlearn import q_update
Q = {}
Q = q_update(Q, state="s1", action="a1", reward=1.0, next_state="s2")
print(Q) # {'s1': {'a1': 0.1}} for default alpha=0.1, gamma=0.99
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
simpleqlearn-0.1.1.tar.gz
(2.9 kB
view details)
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 simpleqlearn-0.1.1.tar.gz.
File metadata
- Download URL: simpleqlearn-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3358aa88dbb691e47d65ab928281590b3b69c4cb8d887753ac1cb2a22de356ac
|
|
| MD5 |
47aa97148a9a8f58bf5dd073b02bfe71
|
|
| BLAKE2b-256 |
eca915b07e775153025f08cf81260ed37e39d5afda6bb1b57a5fb81f435d7500
|
File details
Details for the file simpleqlearn-0.1.1-py3-none-any.whl.
File metadata
- Download URL: simpleqlearn-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6f2bc719859e47b611d0ec9f119a3a253ef920538d5a9135757884dd90333aa
|
|
| MD5 |
cedb17484d491d398c74b9e8c197e663
|
|
| BLAKE2b-256 |
128ca100e4cd186ac92c9eab3ebd69e135f874ddb8fd3eb92e9f41a43783c75a
|