Skip to main content

JAX-based emulator for galaxy power spectra with bias modeling

Project description

jaxeffort

Open In Colab codecov arXiv Documentation Documentation Dev

JAX-based emulator for galaxy power spectra with bias modeling and EFT corrections.

Documentation

Installation and usage

In order to install jaxeffort, you can just run

pip install jaxeffort

If you prefer to use the latest version from the repository, you can clone it, enter it, and run

pip install .

In order to use the emulators, you have to import jaxeffort and load a trained emulator

import jaxeffort
import jax.numpy as np
trained_emu = jaxeffort.load_multipole_emulator("/path/to/emu/")

Then you are good to go! You have to create input arrays for cosmological and bias parameters and retrieve your calculation result

cosmo_params = np.array([...])  # cosmological parameters
bias_params = np.array([...])   # bias parameters
result = trained_emu.get_Pl(cosmo_params, bias_params, D)

For a more detailed explanation, check the tutorial in the notebooks folder, which also shows a comparison with standard power spectrum calculations.

Citing

Free usage of the software in this repository is provided, given that you cite our release paper.

M. Bonici, G. D'Amico, J. Bel, C. Carbone, Effort.jl: a fast and differentiable emulator for the Effective Field Theory of the Large Scale Structure of the Universe, JCAP 09 (2025) 044

@article{Bonici_2025,
  doi = {10.1088/1475-7516/2025/09/044},
  url = {https://dx.doi.org/10.1088/1475-7516/2025/09/044},
  year = {2025},
  month = {sep},
  publisher = {IOP Publishing},
  volume = {2025},
  number = {09},
  pages = {044},
  author = {Bonici, Marco and D'Amico, Guido and Bel, Julien and Carbone, Carmelita},
  title = {Effort.jl: a fast and differentiable emulator for the Effective Field Theory of the Large Scale Structure of the Universe},
  journal = {Journal of Cosmology and Astroparticle Physics}
}

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

jaxeffort-0.2.3.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

jaxeffort-0.2.3-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file jaxeffort-0.2.3.tar.gz.

File metadata

  • Download URL: jaxeffort-0.2.3.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jaxeffort-0.2.3.tar.gz
Algorithm Hash digest
SHA256 49959e03b9c658b1dc72624ee66b70ce225e9425b9336820bba3c6b71f286371
MD5 d2a7f4bc6f954a6e3c58edc38d10a699
BLAKE2b-256 6586bc10f6b89f6761c4b19972b793d68b567a5be1f022aef16caf07da039aa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for jaxeffort-0.2.3.tar.gz:

Publisher: publish.yml on CosmologicalEmulators/jaxeffort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jaxeffort-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: jaxeffort-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jaxeffort-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9b95a2bfbc410297714942d46209d53e915ca07841b9b3ab3dd180723c6e1ac5
MD5 0a0090e2e2531504c04972b9694bcd0c
BLAKE2b-256 0de81a6fdae523eed9c1f8309138d64a8d3ea9ae0ee5c8f0b6f2b2ef95c130aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for jaxeffort-0.2.3-py3-none-any.whl:

Publisher: publish.yml on CosmologicalEmulators/jaxeffort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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