Skip to main content

Strong lensing package using jax

Project description

ci coverage license

paltax is a package for conducting simulation-based inference on strong gravitational lensing images.

Installation

paltax is installable via pip:

$ pip install paltax

For the most up-to-date version of paltax install directly from the git repository.

$ git clone https://github.com/swagnercarena/paltax.git
    $ cd path/to/paltax/
    $ pip install -e .

Usage

The main functionality of paltax is to train (sequential) neural posterior estimators with on-the-fly data generation. To train a model with paltax you need a training configuration file that is passed to main.py:

$ python main.py --workdir=path/to/model/output/folder --config=path/to/training/configuration

paltax comes preloaded with a number of training configuration files which are described in paltax/TrainConfigs/README.rst. These training configuration files require input configuration files, examples of which can be found in paltax/InputConfigs/.

Demos

paltax comes with a tutorial notebook for users interested in using the package.

Figures

Code for generating the plots included in some of the publications using paltax can be found under the corresponding arxiv number in the paltax/notebooks/papers/ folder.

Attribution

If you use paltax for your own research, please cite the paltax package (Wagner-Carena et al. 2024)

paltax builds off of the publically released Google DeepMind codebase jaxstronomy.

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

paltax-1.0.1.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paltax-1.0.1-py3-none-any.whl (472.2 kB view details)

Uploaded Python 3

File details

Details for the file paltax-1.0.1.tar.gz.

File metadata

  • Download URL: paltax-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for paltax-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9151eae4f97c52d05c7270c284ff04e8df3f71b38dab7d673caed66b9c94a23f
MD5 3152b7b989f87621ca2628a53034082a
BLAKE2b-256 c300c442e8c731f0813855970fcf1b7d77620198997ebe112fbee67cedb3288a

See more details on using hashes here.

File details

Details for the file paltax-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: paltax-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 472.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for paltax-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ffbd546301f9d72364dd053826f77415c73b20fc40865faeff228b3002a59b5c
MD5 6402ce879769f7416398692581459acb
BLAKE2b-256 62fcd4aa78f21af5abe431296280769e3dc99415a7f115673d86cfc697237ea3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page