Probabilistic modeling of tabular data with normalizing flows.
Project description
PZFlow
PZFlow is a python package for probabilistic modeling of tabular data with normalizing flows.
If your data consists of continuous variables that can be put into a Pandas DataFrame, pzflow can model the joint probability distribution of your data set.
The Flow
class makes building and training a normalizing flow simple.
It also allows you to easily sample from the normalizing flow (e.g., for forward modeling or data augmentation), and calculate posteriors over any of your variables.
There are several tutorial notebooks in the docs.
Installation
See the instructions in the docs.
Citation
We are preparing a paper on pzflow. If you use this package in your research, please check back here for a citation before publication. In the meantime, please cite the Zenodo release.
Sources
PZFlow was originally designed for forward modeling of photometric redshifts as a part of the Creation Module of the DESC RAIL project. The idea to use normalizing flows for photometric redshifts originated with Bryce Kalmbach. The earliest version of the normalizing flow in RAIL was based on a notebook by Francois Lanusse and included contributions from Alex Malz.
The functional jax structure of the bijectors was originally based on jax-flows
by Chris Waites. The implementation of the Neural Spline Coupling is largely based on the Tensorflow implementation, with some inspiration from nflows
.
Neural Spline Flows are based on the following papers:
NICE: Non-linear Independent Components Estimation
Laurent Dinh, David Krueger, Yoshua Bengio
arXiv:1410.8516
Density estimation using Real NVP
Laurent Dinh, Jascha Sohl-Dickstein, Samy Bengio
arXiv:1605.08803
Neural Spline Flows
Conor Durkan, Artur Bekasov, Iain Murray, George Papamakarios
arXiv:1906.04032
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file pzflow-3.1.3.tar.gz
.
File metadata
- Download URL: pzflow-3.1.3.tar.gz
- Upload date:
- Size: 8.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc8c94a692e6258ec2bcfd11a140c33bc56bfc559ea2409845dbe018fd040c7b |
|
MD5 | 5454e3a0990df19a0b50200e71ac5eb4 |
|
BLAKE2b-256 | d659a8a6a30b0adead48da0a653ad88a93661d729f00df7da9d0c755727a466d |
File details
Details for the file pzflow-3.1.3-py3-none-any.whl
.
File metadata
- Download URL: pzflow-3.1.3-py3-none-any.whl
- Upload date:
- Size: 8.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c09694ff6fdfea488cf5613fbda09f483a47c4305ddb6a791c2aec79f3971d8 |
|
MD5 | 11b796c59c7ee08361831bad280545ed |
|
BLAKE2b-256 | e6b56671c1f510a0f8b89adfe228496d813a8ac5dad8cf8b604ca77fc42e0c8a |