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.2.tar.gz (24.3 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.2-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aule-0.0.2.tar.gz
  • Upload date:
  • Size: 24.3 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.2.tar.gz
Algorithm Hash digest
SHA256 d3766164974faa5e704984416b0db3c5651bfee0de388c4d229810a92b8d1229
MD5 565009ab9b1799d720f7b165315d63a0
BLAKE2b-256 15a9c023ba102055ab8c59241e62c3474392c9cdf39fc15ae0704cbcc0f082b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aule-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 29.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b743f7527b4eace713d20f7bd11ab7af9677757b40c93b60f9f5093e820e7b
MD5 0d227ac6078da3fd749489d71ea4af41
BLAKE2b-256 1e62599515036e9682489a4294b836ad39e9be9a1c89bdd803cab71af4eb5dd2

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