JAX implementation of AbstractCosmologicalEmulators.jl interface with artifact support
Project description
jaxace
JAX/Flax implementation of cosmological emulators with automatic JIT compilation.
Installation
pip install -e .
Usage
import jaxace
import jax.numpy as jnp
# Cosmology
cosmo = jaxace.w0waCDMCosmology(
ln10As=3.044, ns=0.9649, h=0.6736,
omega_b=0.02237, omega_c=0.1200,
m_nu=0.06, w0=-1.0, wa=0.0
)
# Background functions
z = jnp.array([0.0, 0.5, 1.0])
growth = jaxace.D_z_from_cosmo(z, cosmo)
distance = jaxace.r_z_from_cosmo(z, cosmo)
# Neural network emulator
emulator = jaxace.init_emulator(nn_dict, weights, jaxace.FlaxEmulator)
output = emulator(input_data) # Auto-JIT + batch detection
Features
- Background cosmology (growth, distances, Hubble)
- Neural network emulators with auto-JIT
- Massive neutrinos and dark energy support
- Full JAX integration (grad, vmap, jit)
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 jaxace-0.4.1.tar.gz.
File metadata
- Download URL: jaxace-0.4.1.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
239f93a3c1839913788a0fcdb2c0bf8b4ec294a10f0d9b1f6a1187fa30673f95
|
|
| MD5 |
64b840aa039b5b96b84d39399b3d06c7
|
|
| BLAKE2b-256 |
8ed0cbc4666c290a2307dc69475a78adf8c72a352f6a6165d68b01dd78788bdf
|
Provenance
The following attestation bundles were made for jaxace-0.4.1.tar.gz:
Publisher:
publish.yml on CosmologicalEmulators/jaxace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxace-0.4.1.tar.gz -
Subject digest:
239f93a3c1839913788a0fcdb2c0bf8b4ec294a10f0d9b1f6a1187fa30673f95 - Sigstore transparency entry: 739099901
- Sigstore integration time:
-
Permalink:
CosmologicalEmulators/jaxace@d9a4f2846856047a652fd25ca4c1017b0c69ca41 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/CosmologicalEmulators
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d9a4f2846856047a652fd25ca4c1017b0c69ca41 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jaxace-0.4.1-py3-none-any.whl.
File metadata
- Download URL: jaxace-0.4.1-py3-none-any.whl
- Upload date:
- Size: 27.9 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 |
95506e462f9ba7fb3455bbc7c5313c7cf5114d357dae24f5b13265f6db8106ea
|
|
| MD5 |
89d40bba7ef113608d6dc6a2dc4ee81d
|
|
| BLAKE2b-256 |
a98c1d2ff75ecc168a326e10d6158e3edf1ad592185ff5ec07fd71d7846e1476
|
Provenance
The following attestation bundles were made for jaxace-0.4.1-py3-none-any.whl:
Publisher:
publish.yml on CosmologicalEmulators/jaxace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxace-0.4.1-py3-none-any.whl -
Subject digest:
95506e462f9ba7fb3455bbc7c5313c7cf5114d357dae24f5b13265f6db8106ea - Sigstore transparency entry: 739099937
- Sigstore integration time:
-
Permalink:
CosmologicalEmulators/jaxace@d9a4f2846856047a652fd25ca4c1017b0c69ca41 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/CosmologicalEmulators
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d9a4f2846856047a652fd25ca4c1017b0c69ca41 -
Trigger Event:
release
-
Statement type: