Skip to main content

exege

Tools for understanding and evaluating scientific machine-learning models: what an emulator holds inside, sparse autoencoders trained on it, figures, and a local app over them. The name comes from the Greek stem exēgē-, associated with explanation and interpretation.

Research tool. exege is early. What is described here works; expect it to change.

Install

This is the light install: the code, and only Click. Anything heavier sits behind an extra named after the subpackage that needs it:

$ uv pip install 'exege-core[latents]'     # or: pip install 'exege-core[latents]'

For everything at once, install exege instead: it is this with every extra but nn (pip install exege, or 'exege[nn]' to add torch). Both provide the same import exege and the same exege command.

Extra Pulls Gets you
latents numpy, xarray, netCDF4 exege.latents: latent diagnostics on a grid
figures matplotlib, cartopy exege.figures: maps and series figures (brings latents)
app streamlit exege app: a local web app (brings figures)
nn torch exege.nn and exege nn: sparse autoencoders (brings latents)
hf huggingface_hub archives read from a Hugging Face repository, hf://datasets/... (brings latents)

A missing extra says so, with the command that fits how exege was installed.

Try it, with no model and no data

A toy emulator writes a latent archive with nothing but numpy; everything else reads it like any other:

$ exege latents toy scratch/toy/control
$ exege latents info scratch/toy/control --mask-variable sst
$ exege latents region scratch/toy/control --lat 10 --lon -114 --time 2 --centered --pcs 2
$ exege latents fields scratch/toy/control --field precipitation --top 3
$ exege nn sae scratch/toy/control --features 64 --k 4 --out scratch/toy/sae.npz   # needs exege-core[nn]
$ exege app --latents scratch/toy                                                  # needs exege-core[app]

The CLI is a thin client of the Python API; anything it can do, a notebook can:

from exege.latents import Region, analyze_region, open_source

source = open_source("scratch/toy/control", mask_variable="sst")
result = analyze_region(
    source, time=2, layer=3, region=Region(lat=10, lon=-114, radius_km=1500), centered=True
)
result.ranking.channels  # the channels that respond most strongly there

More

BSD-3-Clause. exege.latents, exege.figures and exege.app grew out of the latent space visualiser for weather models (Tempest, Beylich & Craig 2026, arXiv:2604.20467, doi:10.1007/978-3-032-29915-4_10); see NOTICE. The sparse autoencoders follow MacMillan & Ouellette (2025, arXiv:2512.24440); the B-spline autoencoder of Cheon (2026, arXiv:2605.17493) is what exege.nn is heading for and does not implement yet.

Metadata

Release files for exege-core 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exege-core 0.6.0
File Size Uploaded
exege_core-0.6.0.tar.gz 200.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for exege-core 0.6.0
File Interpreter ABI Platform
exege_core-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 346.2 kB

Release files / exege_core-0.6.0.tar.gz

Download URL exege_core-0.6.0.tar.gz
Size 200.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ed8a3dafec64f5c9e3950dff99e86be1982a2fafba6825a1c160d2b22b47f954
BLAKE2b-256 checksum
How to use checksums
c273fdca7fff4f036b8280a03f240ce6b7954c56d7816f3d7d2e79398c818b25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / exege_core-0.6.0-py3-none-any.whl

Download URL exege_core-0.6.0-py3-none-any.whl
Size 146.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8456c2fc55d64ccc81a5b4aa4f2a8df9d300b67f11cd0e7a2210e6e137df0718
BLAKE2b-256 checksum
How to use checksums
ad43a1b1d21743085c74e94f47500a556efb9f7bbe1c6304c446bd8bd7ef8b3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.0

2 release files

This release

0.6.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page