Giter VIP home page Giter VIP logo

ski-trip's Introduction

Bayesian Neural Networks

Repo to track progress on bayesian/variational autoencoders

Following are good code references:

  1. Reference to tensorflow probability

  2. TFP CVAE code

  3. Flipout documentation

  4. Blog1 - keras implementation

  5. Blog2 - juandoriz

Research Papers to consider:

  1. Kingma paper

  2. BayesByBackprop

  3. Weiwei Pan

  4. Evidential Regression

  5. Flipout

Following files contain the following:

  • TFP_DenseVAE_MNIST

MNIST generation using Variational AutoEncoder

Uses TensorflowProbability. IndependentNormal for stochastic hidden units

  • TFP_LinearRegression

Using HMC for linear regression

Easy linear regression problem solved using MCMC HMC algorithm

  • TFP_Understanding_HMC

HMC algorithm code

Uses a one parameter example to demonstrate how to sample using HMC

  • VAE_FromScratch

Functional API, Gradient Tape

Using deterministic architecture to build a probabilistic model

  • MCMC_Linear_MetropolisHastings

From scratch implementation of MCMC. Use of Metropolis hastings algorithm

  • FullMCMC_BNN_***

Using MCMC to solve a simple neural network

We try several stragies:

  1. Randomly initialized weights
  2. Some weights fixed
  3. Early stopping

Early stopping gave good results.

  • BNN_DenseVariational

Using BayesByBackprop to find distribution of the weights

In this exercise, we also experiment with flipout layers, and apparently get better results.

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.