GithubHelp home page GithubHelp logo

cw-huang / noisynaturalgradient Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pomonam/noisynaturalgradient

0.0 3.0 0.0 2.73 MB

TensorFlow implementation of "noisy K-FAC" and "noisy EK-FAC"

Python 100.00%

noisynaturalgradient's Introduction

Noisy Natural Gradient (noisy K-FAC & noisy EK-FAC)

This repository contains a clean-up code for noisy K-FAC ("Noisy Natural Gradient as Variational Inference") and noisy EK-FAC ("Eigenvalue Corrected Noisy Natural Gradient").

Papers:

Usage

The repository is composed of two parts: regression and classification. The choice of hyper-parameters is described in the paper.

Noisy K-FAC

  • Classification
python train.py --config config/classification/kfac_vgg16_plain.json
  • Regression (single run)
python train.py --config config/regression/kfac_concrete.json
  • Regression (repeated runs)
python regression_baseline.py --config config/regression/kfac_concrete.json

Noisy EK-FAC

  • Classification
python train.py --config config/classification/ekfac_vgg16_plain.json
  • Regression (single run)
python train.py --config config/regression/ekfac_concrete.json
  • Regression (repeated runs)
python regression_baseline.py --config config/regression/ekfac_concrete.json

Requirements

The code was implemented & tested in Python 3.5. All required modules are listed in requirements.txt and can be installed with the following command:

pip install -r requirements.txt

In addition, please install zhusuan, a Python probabilistic programming library for Bayesian deep learning.

Citation

To cite this work, please use:

@article{zhang2017noisy,
  title={Noisy Natural Gradient as Variational Inference},
  author={Zhang, Guodong and Sun, Shengyang and Duvenaud, David and Grosse, Roger},
  journal={arXiv preprint arXiv:1712.02390},
  year={2017}
}
@article{bae2018eigenvalue,
  title={Eigenvalue Corrected Noisy Natural Gradient},
  author={Bae, Juhan and Zhang, Guodong and Grosse, Roger},
  journal={arXiv preprint arXiv:1811.12565},
  year={2018}
}

TensorBoard Visualization

The implementation supports TensorBoard visualization.

tensorboard --logdir=experiments/cifar10/ekfac_vgg16_aug/summary

Contributors

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.