Skip to main content

Generalised framework for emulating spectral signals.

Project description

Next Generation Emulators for Cosmology and Astrophysics

Author Harry Bevins
Version 0.1.2
Homepage https://github.com/htjb/astroemu

UNDER DEVELOPMENT

astroemu implements a generalized framework for emulating spectral signals and is inspired by the globalemu package.

The neural network emulators are implemented in JAX and the dataloaders are built on top of PyTorch.

As with globalemu the idea is to input the independent variables alongside the physical parameters of your model then predicting a single corresponding spectral value. Full spectra can then be generated via a vectorised call to the network. The training data is tiled in the dataloaders so that the parameters and independent variables are concatenated as inputs and stacked up alongside the outputs. For example if we have a signal $y = f(x, \theta)$ and we have N $\theta$ samples and m $x$ and $y$ values then our training data looks like

Input Output
[$\theta_{0}$, $x_0$] $y_0$
[$\theta_{0}$, $x_1$] $y_1$
[$\theta_{0}$, $x_2$] $y_2$
[$\theta_{0}$, ...] ...
[$\theta_{0}$, $x_m$] $y_m$
[..., ...] ...
[$\theta_N$, $x_m$] $y_m$

For more details see the globalemu paper. A paper is in preparation demonstrating applications of this package to a broad range of astrophysical signals.

Contributions

Contributions are welcome! Please open an issue to discuss and have a read of the Contribution guidelines.

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

astroemu-0.1.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

astroemu-0.1.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file astroemu-0.1.2.tar.gz.

File metadata

  • Download URL: astroemu-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for astroemu-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9651c8963e7b464989b33ee23dae133703d5bf0a07ff13acabb7c1d04cd82af4
MD5 1411b665483219a45994e490d487f3e2
BLAKE2b-256 2dd585e7a841e2deff5e044014e84063903ca7677ba4be7cdbca4f53124781b9

See more details on using hashes here.

File details

Details for the file astroemu-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: astroemu-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for astroemu-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ccf33e5218ba5dc227cbf74b4ad635fbdd51a42022d34388ac6b3169b89bda17
MD5 b73998d41ed441f8e3f5f4fd17c0d84f
BLAKE2b-256 0ac1dab357a4140239fbbbfc986ef2f540728c7901ad38e6277b10dfe7f62802

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