junliangma / generativeSSL

Deep generative model for labels for semi-supervised learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deep Generatives Models for Semi-Supervised Learning

This repository implements a number of DGMs for semi-supervised learning in tensorflow. The repository contains implementations of:

The models are implementated in TensorFlow 1.3.

Installation

Please make sure you have installed the requirements before executing the python scripts.

Install

pip install scipy
pip install numpy
pip install matplotlib
pip install tensorflow(-gpu)

Examples

The repository includes a template for designing further deep generative models. The templates make use of the library found in utils/dgm.py which contains Bayesian deep learning functionalities. An example script (run_mnist.py) will also be included which demonstrates how to successfully use the models and interact with the data wrapper found in data/SSL_DATA.py. The script trains a model of choice <M2, ADGM, SDGM, (aux, skip)-SSLPE, (aux, skip)-SSLAPD> using only 10 labeled examples form each class in MNIST, and should be run: .. code-block:: bash

python run_mnist.py <m2, adgm, sdgm, sslpe, sslapd,...>

About

Deep generative model for labels for semi-supervised learning


Languages

Language:Python 100.0%