A little helper to calculate human normalized score for different ALE environments efficiently.
Project description
Atari Human Normalized Score
Lightweight helper for computing Atari human-normalized scores (HNS) using published human and random baselines.
Installation
- From PyPI (once published):
pip install atarihns - From source: clone the repo and run
pip install .
Usage
from atarihns.helpers import calculate_hns, get_human_score, get_random_score
env = "Pong-v5"
agent_score = 15.0
human = get_human_score(env)
random = get_random_score(env)
hns = calculate_hns(env, agent_score)
print(f"{env} human: {human}, random: {random}, hns: {hns:.3f}")
Notes
- Baseline scores for ALE environments are defined in
atarihns.constants.ATARI_SCORESas(random, human). - Helper functions raise
KeyErrorif an environment name is missing from the table.
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
atarihns-0.0.11.tar.gz
(6.0 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 atarihns-0.0.11.tar.gz.
File metadata
- Download URL: atarihns-0.0.11.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b8f6c396dd0de5a7a081adaf9dd4d1a12f8a00e0cbea872a15583dae618c497
|
|
| MD5 |
896a6d52e4ae64bf4fda0d7be4bceb02
|
|
| BLAKE2b-256 |
242b80fe94a4a476bd12a77b29146bc0df7007fb5304ceeaf47a2e5ea19f122f
|
File details
Details for the file atarihns-0.0.11-py3-none-any.whl.
File metadata
- Download URL: atarihns-0.0.11-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b473729e6cc54be1aca90247921e78127216d983eb4bd6f0a2285114067cba37
|
|
| MD5 |
68d5af6370780f8640bffdc026d7f16e
|
|
| BLAKE2b-256 |
0798adfedebaa9f2ba16b2fe92c781949793ceffd0135b9b9d22bdf058c45308
|