Skip to main content

Sum tree and min tree implementation used particularly in reinforcement learning algorithms.

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_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.1.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.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atarihns-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 251b28ef7b28a8ce97488d0a0bd86dfb5210bcbf12fff55e17ac9ae9c2aef946
MD5 bee58ec8eb52584d00902ab3b02a01a3
BLAKE2b-256 4017617c541eb0f3a1eed6fd7580246c2cfcab4e2f3ad61c9a2b0dc07f0e7112

See more details on using hashes here.

File details

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

File metadata

  • Download URL: atarihns-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d760d6e193f2a24dbfa71abd40d9463cfa3568d6b5ae53b2bc9d76206e69e07c
MD5 a5eae1ec2a925cae6b52bd287a13a215
BLAKE2b-256 e2ddc48caeb199b97b32ae26f4a778d9f753eeb7481c7c5900de371578eb2102

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