Skip to content
j-drPublic

About

Differentiable likelihoods through surrogate models (gholas).

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

gholax

drawing

Differentiable likelihoods through surrogate models. Our logo represents a neural network surrogate model (ghola) for a theory model (velocileptors in this case).

Neural network surrogate models and data from https://arxiv.org/abs/2510.18981 will be made available upon acceptance of this work. For early access, please contact [email protected].

Installation

Dependencies

  • h5py for reading emulator data
  • numpy, scipy
  • mpi4py for running multiple chains simultaneously
  • jax, jaxlib
  • blackjax for sampling algorithms
  • optax for minimization
  • interpax for theory calculations

NERSC Installation

At NERSC you can run sh setup_nersc_env.sh and this should create a functional conda environment, that you can activate as follows:

module load python
mamba activate gholax

This is equipped with a jupyter kernel named gholax that you can use with NERSC's jupyterlab.

Local Installation

Analogously, assuming you have mamba installed, you can run sh setup_env.sh and it will build a functioning environment with gholax installed. The environment can then be activated by calling mamba activate gholax.

Running the tests

From the repository root, with the gholax environment activated:

pytest tests

The analytic marginalization (AM) tests are slow; to skip them:

pytest tests -k "not am_"

About

Differentiable likelihoods through surrogate models (gholas).

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages