Skip to main content

Probabilistic modeling of tabular data with normalizing flows.

Project description

build codecov PyPI version DOI Docs

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pzflow-3.0.1.tar.gz (8.7 MB view details)

Uploaded Source

Built Distribution

pzflow-3.0.1-py3-none-any.whl (8.7 MB view details)

Uploaded Python 3

File details

Details for the file pzflow-3.0.1.tar.gz.

File metadata

  • Download URL: pzflow-3.0.1.tar.gz
  • Upload date:
  • Size: 8.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.6.8 Linux/3.10.0-1160.36.2.el7.x86_64

File hashes

Hashes for pzflow-3.0.1.tar.gz
Algorithm Hash digest
SHA256 0524f8ea3143c32387d8ef69ffabcca3a9f7433a45b47d993638d243366de021
MD5 1fedbca6c6c4cdfd3d6daada08e9780b
BLAKE2b-256 fa9c6fc01ac9b4ac73de278eca7584466402122683504c4e903e6dc4e4ad4792

See more details on using hashes here.

Provenance

File details

Details for the file pzflow-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: pzflow-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.6.8 Linux/3.10.0-1160.36.2.el7.x86_64

File hashes

Hashes for pzflow-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2a5fe5fbfee948d4fab55209e715733b7420ccca57091c353c081d95fb07abe
MD5 43224968aee637baebbc1f972a290e47
BLAKE2b-256 0d3edc8ea3354db5404e5ef79cc565a169a73435339f94cbe0a053e25f445c43

See more details on using hashes here.

Provenance

Supported by

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