A helper to calculate human normalized score for different atari environments efficiently and easily.
Project description
Atari HNS (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 import get_human_score, get_random_score
from atarihns import calculate_hns, get_hns # alias
environment = "Pong-v5"
agent_score = 15.0
human = get_human_score(environment)
random = get_random_score(environment)
hns = calculate_hns(environment, agent_score)
print(f"{environment} 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.18.tar.gz
(6.8 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.18.tar.gz.
File metadata
- Download URL: atarihns-0.0.18.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67ab52ca7927e9d065068663abd2612df4347048d7c4cbabd8225f34fa487860
|
|
| MD5 |
ee1e14ff76fa3ea25fd093e25cf17ce2
|
|
| BLAKE2b-256 |
709089d5646f3dcd281db6501707c313f5327af098ad7cef56e7ecdd534f8bab
|
File details
Details for the file atarihns-0.0.18-py3-none-any.whl.
File metadata
- Download URL: atarihns-0.0.18-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14adc9e72f135a7078fde093d75150fa4d0e3a6a8474b3a9f222d06e16d2bb2f
|
|
| MD5 |
464edeabb12ffe578f1c7d4569bcb8be
|
|
| BLAKE2b-256 |
487adb7277479f5f6eb149c935a3c1f4e300727df749192c4ef44a5b382e7ff8
|