Generalised framework for emulating spectral signals.
Project description
astroemu — Next Generation Emulators for Cosmology and Astrophysics
Under active development — interfaces may change between versions.
astroemu is a generalised framework for emulating spectral signals in
cosmology and astrophysics, inspired by the
globalemu package. Neural network
emulators are implemented in JAX, with an optax-based training loop and
PyTorch-style dataloaders.
Installation
pip install astroemu
How it works
The core idea (shared with globalemu) is to input independent variables
alongside physical model parameters, predicting a single spectral value per
call. Full spectra are recovered via a vectorised call over all $x$ points.
Given a signal $y = f(x, \theta)$ with $N$ parameter samples and $m$ independent variable points, the training data is tiled so that parameters and independent variables are concatenated as inputs:
| Input | Output |
|---|---|
| $[\theta_0,\ x_0]$ | $y_0$ |
| $[\theta_0,\ x_1]$ | $y_1$ |
| $[\theta_0,\ \ldots]$ | $\ldots$ |
| $[\theta_0,\ x_m]$ | $y_m$ |
| $[\ldots,\ \ldots]$ | $\ldots$ |
| $[\theta_N,\ x_m]$ | $y_m$ |
For more details see the globalemu
paper. A paper demonstrating
applications of astroemu to a broad range of astrophysical signals is in
preparation.
Documentation
git clone git@github.com:htjb/astroemu.git
pip install ".[docs]"
mkdocs serve
or browse the hosted docs at astroemu.readthedocs.io.
Contributions
Contributions are welcome! Please open an issue to discuss and read the contribution guidelines before submitting a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astroemu-0.3.0.tar.gz.
File metadata
- Download URL: astroemu-0.3.0.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
397862def4abfef17e86c81e9d4ddf9e63381549f2c2137eb06b60889896f912
|
|
| MD5 |
243cf8b3afe2537f718bacc41ab6edc1
|
|
| BLAKE2b-256 |
5cb1c29c783c62ac3bb707b4384bb69303879651d650676327fbc4176a266905
|
File details
Details for the file astroemu-0.3.0-py3-none-any.whl.
File metadata
- Download URL: astroemu-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e146d83f9e19b9201feab55a26f13bd1cc0439acfeaa9865fd39be79569f5a56
|
|
| MD5 |
d1ffd679b6b9ef5c319d107df651d4fe
|
|
| BLAKE2b-256 |
6f41249bd80cb438f7eb8413c01becbcfce5d1179910a96babcdaa8fdaed521b
|