JAX implementation of the Capse emulator.
Project description
jaxcapse
Repo containing the jaxcapse emulator.
Installation and usage
In order to install jaxcapse, you can just run
pip install jaxcapse
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 jaxcapse and load a trained emulator
import jaxcapse
import jax.numpy as np
trained_emu = jaxcapse.load_emulator("/path/to/emu/")
Then you are good to! You have to create an input array and retrieve your calculation result
input_array = np.array([...]) #write in the relevant numbers
result = trained_emu.get_Cl(input_array)
For a more detailed explanation, check the tutorial in the notebooks folder, which also shows a comparison with the standard CAMB Boltzmann solver.
Citing
Free usage of the software in this repository is provided, given that you cite our release paper.
M. Bonici, F. Bianchini, J. Ruiz-Zapatero, Capse: efficient and auto-differentiable CMB power spectra emulation
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 jaxcapse-0.1.2.tar.gz.
File metadata
- Download URL: jaxcapse-0.1.2.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed8ee4c50ea5784c29c387fa3587f7b11926bfedf2b55fdae881de03136a43b4
|
|
| MD5 |
35fd1ff88e9b97ce8ea0e32a9c0f706b
|
|
| BLAKE2b-256 |
ebf48a6b959ce03be26c993e24810cc7f12aaf142d43590c447a555be56a1381
|
Provenance
The following attestation bundles were made for jaxcapse-0.1.2.tar.gz:
Publisher:
publish.yml on CosmologicalEmulators/jaxcapse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxcapse-0.1.2.tar.gz -
Subject digest:
ed8ee4c50ea5784c29c387fa3587f7b11926bfedf2b55fdae881de03136a43b4 - Sigstore transparency entry: 516623511
- Sigstore integration time:
-
Permalink:
CosmologicalEmulators/jaxcapse@a76ca09bcb8c7807575cf88d1536ce94b2fc79c1 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/CosmologicalEmulators
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a76ca09bcb8c7807575cf88d1536ce94b2fc79c1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jaxcapse-0.1.2-py3-none-any.whl.
File metadata
- Download URL: jaxcapse-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.7 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 |
ab29168dc961fdbe79f0cadd23954335cc25b7591a934bce9cedc62f59ec0c19
|
|
| MD5 |
66b6fbdd0cbf6ce4c1e21f86889f688c
|
|
| BLAKE2b-256 |
d9b245cf4dd6d63d75204c31431fd7f3be69793a1ce6f23919ef0511d3b35932
|
Provenance
The following attestation bundles were made for jaxcapse-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on CosmologicalEmulators/jaxcapse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxcapse-0.1.2-py3-none-any.whl -
Subject digest:
ab29168dc961fdbe79f0cadd23954335cc25b7591a934bce9cedc62f59ec0c19 - Sigstore transparency entry: 516623545
- Sigstore integration time:
-
Permalink:
CosmologicalEmulators/jaxcapse@a76ca09bcb8c7807575cf88d1536ce94b2fc79c1 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/CosmologicalEmulators
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a76ca09bcb8c7807575cf88d1536ce94b2fc79c1 -
Trigger Event:
release
-
Statement type: