• Stars
    star
    191
  • Rank 202,877 (Top 4 %)
  • Language
    C
  • License
    BSD 3-Clause "New...
  • Created over 9 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Implementation in C and Theano of the method Probabilistic Backpropagation for scalable Bayesian inference in deep neural networks.

Probabilistic-Backpropagation

Implementation in C and Theano of the method Probabilistic Backpropagation for scalable Bayesian inference in deep neural networks.

There are two folders "c" and "theano" containing implementations of the code in "c" and in "theano". The "c" version of the code is between 20 and 4 times faster than the theano version depending on the neural network size and the dataset size. To use the "c" version go to the folder "c/PBP_net" and run the script "compile.sh". You will need to have installed the "openblas" library for fast numerical algebra operations and "cython". For maximum speed, we recommend you to compile yourself the "open blas" library in your own machine. To compile the "c" code type

$ cd c/PBP_net ; ./compile.sh

In each folder, "c" and "theano", the python script test_PBP_net.py creates a two-hidden-layer neural network with 50 hidden units in each layer and fits a posterior approximation using the probabilistic backpropagation (PBP) method by doing 40 ADF passes over the training data. The data used is from the Boston Housing dataset. After the training, the script "test_PBP_net.py" computes and prints the test RMSE and the test log-likelihood. To run the script type

$ python test_PBP_net.py

More Repositories

1

autograd

Efficiently computes derivatives of NumPy code.
Python
6,959
star
2

Spearmint

Spearmint Bayesian optimization codebase
Python
1,544
star
3

neural-fingerprint

Convolutional nets which can take molecular graphs of arbitrary size as input.
TeX
494
star
4

hypergrad

Exploring differentiation with respect to hyperparameters
Python
296
star
5

Kayak

Kayak is a library for automatic differentiation with applications to deep neural networks.
Python
227
star
6

molecule-autoencoder

A project to enable optimization of molecules by transforming them to and from a continuous representation.
Python
154
star
7

pgmult

Dependent multinomials made easy: stick-breaking with the Pólya-gamma augmentation
Python
60
star
8

hips-lib

Library of common tools for machine learning research.
Python
40
star
9

author-roulette

LaTeX package for randomizing author order based on a public seed.
TeX
39
star
10

firefly-monte-carlo

Implementation of an algorithm for Markov chain Monte Carlo with data subsampling
Python
31
star
11

maxwells-daemon

Fastidious accounting of entropy streams into and out of optimization and sampling algorithms.
TeX
31
star
12

DESI-MCMC

MCMC for the Dark Energy Spectroscopic Instrument
Jupyter Notebook
13
star
13

BayesianStructuredSparsity

Code for performing Bayesian regression with structured sparsity from a Gaussian field.
8
star
14

autopaint

Gradient-based variational autoencoders to generate class-conditional natural images.
Python
6
star
15

gpu_numpy

A Numpy wrapper that adds a gpufloat32 dtype to Numpy.
Python
6
star
16

trusty_scribe_viewer

Website for viewing a git repo as a lab notebook. Figures and text files can be included with markdown-like syntax.
Python
4
star
17

optofit

A python framework for fitting biophysical models to optically recorded neural signals.
Python
4
star
18

lpickle

Linefeed-delimited pickle for Unix-style piping of arbitrary Python data
Python
2
star
19

Matrical

A simple abstraction layer for matrix computations in Python, making it easy to switch between CPU and NVIDIA or Intel coprocessors.
2
star