Learn distributions with normalizing flows.
Project description
zenflow
This library implements a flow-based generative model and bijectors which are implemented as FLAX modules. Conditional flows are supported.
License
The source code is released under the MIT license.
Installation
pip install zenflow
Documentation
There is currently no online documentation, but the library has useful docstrings. Please use the docstrings and look into the usage examples in the examples
folder.
History
This project was originally forked from PZFlow by John Franklin Crenshaw, but largely rewritten. PZFlow itself draws from other repositories, which are listed in the PZFlow documentation. I needed a code base which is simple to understand and stripped down to the essentials for my use case. Differences between PZFlow and zenflow:
- zenflow uses generic JAX arrays for data input and output, while PZFlow enforces the use of Pandas.
- zenflow implements all trainable objects as FLAX modules, while PZFlow uses JAX primitives. Like FLAX, zenflow follows a clean functional design.
- PZflow supports training on data points with uncertainties, zenflow has no support for that.
- PZflow supports computing marginalized posterior densities, zenflow has no support for that.
- PZflow supports periodic data, which is currently not supported by zenflow (I plan to reintroduce this later).
- PZflow supports more bijectors than zenflow.
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 zenflow-0.2.0.tar.gz
.
File metadata
- Download URL: zenflow-0.2.0.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e71bbc6ff989e9be280e8d3c8fa5d0f6822da7d42656ea0427d97613b6ec9ad |
|
MD5 | 972fe914c7502d72b8f37b2b66df3e67 |
|
BLAKE2b-256 | 99f53c78249efbe09006307297c03d4e4020407680bc24f1a7dd9388e8ce2a63 |
File details
Details for the file zenflow-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: zenflow-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d75eee7c763c16b6fa54cc7991b01d637e3378613141d0ef5989a2a8ad3405c |
|
MD5 | f923d2c1d7248b2b1822def8e2dbd795 |
|
BLAKE2b-256 | 0f658e0cff620a47df5d5badf6f599fd76e22436610917901ae2227bb3b1be0e |