Skip to content
BayesLIMPublic

About

Emulators in Python

Resources

Stars

5 stars

Watchers

2 watching

Forks

Latest commit

 

History

114 Commits

Folders and files

Repository files navigation

emupy : Emulators in Python

Run Tests codecov

Version: 1.0.0

Code Repo : https://github.com/BayesLIM/emupy

About:

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.

Dependencies:

  • numpy >= 1.10.4
  • scipy >= 1.4.0
  • sklearn >= 0.18

Optional Dependencies:

  • pytorch >= 1.7.0
  • sympy >= 1.3
  • numexpr >= 2.6.9

Install:

To install, clone the repo, cd into it and run the setup.py script

python setup.py install

or

pip install -e .

Running:

See Examples for demonstrations on how to run the code

Citation:

Please use Kern et al. 2017 for citation.

Authors:

Nicholas Kern, UC Berkeley
Duncan Rocha, Harvey Mudd College

About

Emulators in Python

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages