package for emulating galaxy power spectrum multipoles using neural networks
Project description
MENTAT-LSS
The Multipole Emulator for Nonlinear Tracer Analysis of Two-point statistics and Large Scale Structure is a package providing tools to create and use a neural network emulator that outputs redshift-space galaxy power spectrum multipoles given a set of input cosmology + galaxy bias parameters. Said emulator is able to generate multipoles for multiple tracer and redhshift bins simultaniously. While originally designed for use in SPHEREx likelihood inference studies, mentat-lss can be used for any galaxy clustering survey (BOSS, DESI, etc).
For more details on how to use this package, check out our documentation on ReadTheDocs!
Installing the code
This package works on both Linux and MacOS (intel and arm64) platforms, and has so-far been tested using Python 3.11. There are two methods to install the code.
Preliminaries
- To enable GPU functionality for network training, make sure you have CUDA installed (or python 3.8+ if using apple silicon).
- You will need some way to generate galaxy power spectrum multipoles to generate training sets. One option is to download and install both ps_1loop and ps_theory_calculator. You might need to request access to those repositories, in which case you can contact Yosuke Kobayashi (yosukekobayashi@arizona.edu). We have also included a version of FAST-PT to satisfy this requirnment.
From pip (recommended)
In a clean enviornment, simply run,
pip install mentat-lss
Alternatively, if you would like to install from source (for example, you want to add to the package, or would like easier access to the provided config files)), you can do so in two different ways.
From source (automatic)
- Download this repository to your location of choice.
- In the base directory, simply run
install.shin the terminal. This script will create a new anaconda enviornment, fetch the corresponding version of PyTorch, and install the code, all automatically.
From source (manual)
- Download this repository to your location of choice.
- install the corresponding PyTorch version. If your machine doesn't have a GPU, you can skip this step.
- In the base directory, run
python -m pip install ., which should install this repository as a package and all required dependencies.
To run the provided unit-tests, you can run the following command in the base repo directory,
python -m pytest tests
Using MENTAT-LSS
Check out our ReadTheDocs Page on a typical workflow process.
If you use this package for your research, please cite the following papers:
- Adamo et al (2025, in prep)
- symbolic_pofk (Bartlett et al (2024))
Authors
- Joe Adamo (primary) (jadamo@arizona.edu)
- Annie Moore
- Grace Gibbins
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 mentat_lss-0.9.4.tar.gz.
File metadata
- Download URL: mentat_lss-0.9.4.tar.gz
- Upload date:
- Size: 124.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95e77417961935da32b024c4e16cb6112dbfaed122d45743227f9cfb9ff77ba3
|
|
| MD5 |
14faa3922b643b0392e5e5f79a67f9a6
|
|
| BLAKE2b-256 |
a3048498bace7100912fe7dfe70ddc3879a469dec9cc3528ad752b79b5a09e0f
|
File details
Details for the file mentat_lss-0.9.4-py3-none-any.whl.
File metadata
- Download URL: mentat_lss-0.9.4-py3-none-any.whl
- Upload date:
- Size: 129.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
945fa3c0ee9ccb1382190683d2fa24204a633a2673235a2d3efe991405343b98
|
|
| MD5 |
4178c211c2e000bfe394aac522f9a16e
|
|
| BLAKE2b-256 |
de572d9783efd7216d4df05096b3d61ef8ebccee205f323feef89d85499e5612
|