Skip to main content

A little helper to calculate human normalized score for different ALE environments efficiently.

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_SCORES as (random, human).
  • Helper functions raise KeyError if an environment name is missing from the table.

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

atarihns-0.0.14.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atarihns-0.0.14-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file atarihns-0.0.14.tar.gz.

File metadata

  • Download URL: atarihns-0.0.14.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

Hashes for atarihns-0.0.14.tar.gz
Algorithm Hash digest
SHA256 51e92b479737aeec6b876d7d4da17529baef8c9a33a1c69a1200f262ee057778
MD5 73f20c3e02d5d057ffb5d93e5b02178b
BLAKE2b-256 dc74d68a39421216dff4f20c7aed9c55e3f3997cd0a32b11f894621e4827373b

See more details on using hashes here.

File details

Details for the file atarihns-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: atarihns-0.0.14-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

Hashes for atarihns-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 fd9a984b7df593ed291f505e5eed1c02a93f31c0c82cdd931fcba42087c8232d
MD5 8ff87fe8299709ebcdc8e1cdeb92deb2
BLAKE2b-256 41bd406c66434ffb7a823655f35474d01fcab6bf8966c3568e7b8519860b54ab

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