Skip to main content

Validation metrics and plots for machine learning models, with a focus on earth observation and climate science.

Project description

aule

aule provides validation metrics and plots for machine learning model outputs, with a focus on earth observation and climate science use cases (gridded fields, ensembles, multi-temporal data).

Named after Aulë, the Vala of craft in Tolkien's mythology — the one who forges and evaluates the work of his own hands.

Supported input shapes

Every function accepts numpy arrays in one of four shapes:

  • (batch, H, W, C)
  • (batch, H, W, C, T)
  • (H, W, C)
  • (H, W, C, T)

When an array is 4D, pass data_format="bhwc" (default) or data_format="hwct" to disambiguate, since the two shapes cannot be told apart from shape alone.

Installation

pip install aule

# with cartopy support for geographic basemaps
pip install aule[geo]

Quick example

import numpy as np
from aule.metrics import rmse, mae, pearson_r, ssim
from aule.plots import plot_field_comparison, plot_scatter

gt   = np.random.rand(64, 64, 1)
pred = gt + np.random.normal(0, 0.1, gt.shape)

print(rmse(gt, pred))
print(pearson_r(gt, pred))

fig, axes = plot_field_comparison(gt, pred)
fig, ax = plot_scatter(gt, pred, save_path="scatter.png")

Documentation

The documentation is produced using pdoc.

python build_doc.py

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

aule-0.0.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

aule-0.0.1-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aule-0.0.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for aule-0.0.1.tar.gz
Algorithm Hash digest
SHA256 64fa334c70afda135def56437cc2d46819301025822e4e2171665c11493778d7
MD5 ba2921f79f895cc9fa5d1c4db8b5f987
BLAKE2b-256 9e3196e6b8c2e62bd8579158bcf36981907ac2e394cb3849642ea7ceeaeeac71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aule-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for aule-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef6d0ab76d9c96969905a6065c831c877536c900a4c50410e63598fea0a6b357
MD5 e3c710c26d8081d72f720c524534435c
BLAKE2b-256 523fce2a907883999fbf4de683f2b54f4b19f574466cb786a31425e74e591f03

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