Code Repo : https://github.com/BayesLIM/emupy
emupy is a generalized Python implementation of the emulator algorithm detailed in Kern et al. 2017, and includes methods for Principcal Component Analysis and Gaussian Process Regression. To see emupy applied specifically to emulating the 21cm EoR power spectrum, see pycape.
emupy version 1.0.0 has an updated API, and now also includes a generalized linear model emulator (emupy.linear.LinearEmulator
) and a neural network emulator built on pytorch (emupy.nn.NNEmulator
).
emupy is only compatible with Python >= 3.6.
- numpy >= 1.10.4
- scipy >= 1.4.0
- sklearn >= 0.18
- pytorch >= 1.7.0
- sympy >= 1.3
- numexpr >= 2.6.9
To install, clone the repo, cd into it and run the setup.py script
python setup.py install
or
pip install -e .
See Examples for demonstrations on how to run the code
Please use Kern et al. 2017 for citation.
Nicholas Kern, UC Berkeley
Duncan Rocha, Harvey Mudd College