JAX-based emulator for galaxy power spectra with bias modeling
Project description
jaxeffort
JAX-based emulator for galaxy power spectra with bias modeling and EFT corrections.
Documentation
- Stable Documentation - Latest release documentation
- Development Documentation - Latest development version 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
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 jaxeffort-0.2.4.tar.gz.
File metadata
- Download URL: jaxeffort-0.2.4.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54eac31e8104bc7d69fe14d546a47c86f2fec18377960f089d0b4850c8ea2d06
|
|
| MD5 |
c5d3e1cd16e74fa1197988290ee5aed3
|
|
| BLAKE2b-256 |
f1eed0eef7471e004414cbfa00a50dcf12a56b48481c96d56f0397f18fee72c1
|
Provenance
The following attestation bundles were made for jaxeffort-0.2.4.tar.gz:
Publisher:
publish.yml on CosmologicalEmulators/jaxeffort
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxeffort-0.2.4.tar.gz -
Subject digest:
54eac31e8104bc7d69fe14d546a47c86f2fec18377960f089d0b4850c8ea2d06 - Sigstore transparency entry: 738218133
- Sigstore integration time:
-
Permalink:
CosmologicalEmulators/jaxeffort@509c1e7287d693262d3ba5b6f66e100929876775 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/CosmologicalEmulators
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@509c1e7287d693262d3ba5b6f66e100929876775 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jaxeffort-0.2.4-py3-none-any.whl.
File metadata
- Download URL: jaxeffort-0.2.4-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45da4fbf0627c16e72d1585d66eea29a5ac531b54b2696b6ad7c12bfb254fe2e
|
|
| MD5 |
829eb0c5f7576b70340a1cc5ac01a70e
|
|
| BLAKE2b-256 |
9eacdb65c784fb05a3427dc76d6edaf6bc278873b3dc9c383ca1fa1467a3aa48
|
Provenance
The following attestation bundles were made for jaxeffort-0.2.4-py3-none-any.whl:
Publisher:
publish.yml on CosmologicalEmulators/jaxeffort
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxeffort-0.2.4-py3-none-any.whl -
Subject digest:
45da4fbf0627c16e72d1585d66eea29a5ac531b54b2696b6ad7c12bfb254fe2e - Sigstore transparency entry: 738218143
- Sigstore integration time:
-
Permalink:
CosmologicalEmulators/jaxeffort@509c1e7287d693262d3ba5b6f66e100929876775 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/CosmologicalEmulators
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@509c1e7287d693262d3ba5b6f66e100929876775 -
Trigger Event:
release
-
Statement type: