All Projects → TrentBrick → Pytorchdiscreteflows

TrentBrick / Pytorchdiscreteflows

Discrete Normalizing Flows implemented in PyTorch

Projects that are alternatives of or similar to Pytorchdiscreteflows

Tf Wavenet vocoder
Wavenet and its applications with Tensorflow
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
Cs231n.github.io
Public facing notes page
Stars: ✭ 8,590 (+14459.32%)
Mutual labels:  jupyter-notebook
Introduction To Nlp
Lectures for Udemy - INLP
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
Pyspark Examples
Code examples on Apache Spark using python
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
A journey into math of ml
汉语自然语言处理视频教程-开源学习资料
Stars: ✭ 1,094 (+1754.24%)
Mutual labels:  jupyter-notebook
Cloudml Magic
Jupyter Notebook Magics for Google Cloud ML Engine
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
Mlkatas
A series of self-correcting challenges for practicing your Machine Learning and Deep Learning skills
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
Ia4business
Curso de Inteligencia Artificial aplicada a Negocios y Empresas
Stars: ✭ 59 (+0%)
Mutual labels:  jupyter-notebook
Skillsnetwork
Stars: ✭ 1,098 (+1761.02%)
Mutual labels:  jupyter-notebook
Principles Of Data Science
Principles of Data Science by Packt
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
One Pixel Attack Keras
Keras implementation of "One pixel attack for fooling deep neural networks" using differential evolution on Cifar10 and ImageNet
Stars: ✭ 1,097 (+1759.32%)
Mutual labels:  jupyter-notebook
C3d
C3D is a modified version of BVLC caffe to support 3D ConvNets.
Stars: ✭ 1,097 (+1759.32%)
Mutual labels:  jupyter-notebook
Apparel Styles
Deep Learning to Describe Clothing by Semantic Attributes
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
Jupyter Rise
Auto-launching the RISE plugin for Binder presentations.
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
Gpclust
Collapsed Variational Bayes
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
Louplus Ml
实验楼 《楼+ 机器学习实战》课程挑战作业参考答案 https://www.shiyanlou.com/louplus/ml
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
Fraud Detection
Credit Card Fraud Detection using ML: IEEE style paper + Jupyter Notebook
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook
College Majors Visualisation
Interactive Data Visualisation of U.S College Majors
Stars: ✭ 59 (+0%)
Mutual labels:  jupyter-notebook
Mind
2020 MIND news recomendation first place solution
Stars: ✭ 59 (+0%)
Mutual labels:  jupyter-notebook
Attentional Interfaces
🔍 Attentional interfaces in TensorFlow.
Stars: ✭ 58 (-1.69%)
Mutual labels:  jupyter-notebook

Acknowledgements

The discrete normalizing flow code is originally taken and modified from: https://github.com/google/edward2/blob/master/edward2/tensorflow/layers/discrete_flows.py and https://github.com/google/edward2/blob/master/edward2/tensorflow/layers/utils.py Which was introduced in the paper: https://arxiv.org/abs/1905.10347

The demo file, MADE, and MLP were modified and taken from: https://github.com/karpathy/pytorch-normalizing-flows

State of Library

To my knowledge as of July 3rd 2020, this is the only functional demo of discrete normalizing flows in PyTorch. The code in edward2 (implemented in TF2 and Keras, lacks any tutorials. Since the release of this repo and because of correspondence with the authors of the original paper, demo code for reproducing Figure 2 using Edward2 has been shared here.

With collaboration from Yashas Annadani and Jan Francu, I have been able to reproduce the paper's Figure 2 discretized mixture of Gaussians with this library.

Use Library

To use this package, clone the repo satisfy the below package requirements, then run Figure2Replication.ipynb.

Requirements: Python 3.0+ PyTorch 1.2.0+ Numpy 1.17.2+

Implementation details

NB. Going from Andre Karpathy's notation, flow.reverse() goes from the latent space to the data and flow.forward() goes from the data to the latent space. This is the inverse of some other implementations including the original Tensorflow one. Implements Bipartite and Autoregressive discrete normalizing flows. Also has an implementation of MADE and a simple MLP.

TODOs - Pull requests very welcome!

Replication of Figure 2 Mixture of Gaussians

Figure 2 in the paper looks like this:

PaperFigure2

This library's replication is:

Fig2Reproduction

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].