Skip to content

CosmologicalEmulators/jaxeffort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jaxeffort

Repo containing the jaxeffort emulator.

Installation and usage

In order to install jaxeffort, clone this repository, 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! You have to create an input array and retrieve your calculation result

input_array = np.array([...]) #write in the relevant numbers
bias_array = np.array([...])
result = trained_emu.get_Pl(input_array, bias_array)

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

About

Repo containing the jaxeffort wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages