Coder Social home page Coder Social logo

andrewatanov / semi-supervised-flow-pytorch Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 2.0 57.7 MB

Code for the paper "Semi-Conditional Normalizing Flows for Semi-Supervised Learning"

License: GNU General Public License v3.0

Python 100.00%
semi-supervised-learning normalizing-flows

semi-supervised-flow-pytorch's Introduction

Semi-Supervised Flows PyTorch

Authors: Andrei Atanov, Alexandra Volokhova, Arsenii Ashukha, Ivan Sosnovik, Dmitry Vetrov

This repo contains code for our INNF workshop paper Semi-Conditional Normalizing Flows for Semi-Supervised Learning

Abstract: This paper proposes a semi-conditional normalizing flow model for semi-supervised learning. The model uses both labelled and unlabeled data to learn an explicit model of joint distribution over objects and labels. Semi-conditional architecture of the model allows us to efficiently compute a value and gradients of the marginal likelihood for unlabeled objects. The conditional part of the model is based on a proposed conditional coupling layer. We demonstrate performance of the model for semi-supervised classification problem on different datasets. The model outperforms the baseline approach based on variational auto-encoders on MNIST dataset.

Poster

Semi-Supervised MNIST classification

Train a Semi-Conditional Normalizing Flows on MNIST with 100 labeled examples:

python train-flow-ssl.py --config config.yaml

You can then find logs at <where-script-launched>/logs/exman-train-flow-ssl.py/runs/<id-date>

For the convenience we also provide pretrained weights pretrained/model.torch, use --pretrained flag for loading.

Credits

Citation

If you found this code useful please cite our paper

@article{atanov2019semi,
  title={Semi-conditional normalizing flows for semi-supervised learning},
  author={Atanov, Andrei and Volokhova, Alexandra and Ashukha, Arsenii and Sosnovik, Ivan and Vetrov, Dmitry},
  journal={arXiv preprint arXiv:1905.00505},
  year={2019}
}

semi-supervised-flow-pytorch's People

Contributors

andrewatanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.