Coder Social home page Coder Social logo

sgld_online_approximation's Introduction

Efficient variational Bayesian neural network ensembles for outlier detection

This repository contains the code for the paper Efficient variational Bayesian neural network ensembles for outlier detection (arXiv, poster).

Abstract

In this work we perform outlier detection using ensembles of neural networks obtained by variational approximation of the posterior in a Bayesian neural network setting. The variational parameters are obtained by sampling from the true posterior by gradient descent. We show our outlier detection results are comparable to those obtained using other efficient ensembling methods.

Usage

Following libraries were used for development:

edward==1.2.4
jupyter==1.0.0
matplotlib==1.5.3
notebook==4.2.3
numpy==1.12.1
pandas==0.19.2
seaborn==0.7.1
tensorflow-gpu==1.0.1

Furthermore, the notMNIST dataset was used from here and needs to be placed in a notMNIST_data directory. Then, the notebooks can be used or viewed as usual.

Structure

The notebooks are organised as ensembling method_learning rate schedule.ipynb. Additionally SampledGauss_Trajectory_Plot.ipynb shows how to plot the optimization trajectory of a single weight. Visualization.ipynb generates the plots used in the paper. experiment.py holds helper functions to define the neural network etc. inferences.py holds the custom inference classes following the implementations in Edward. Additionally to SGLD and noisy Adam this class holds their adaptions using weighted samples (as suggested by the original SGLD paper) and code to use regular Adam.

Contact

For discussion, suggestions or questions don't hesitate to contact n.pawlowski16 at ic.ac.uk.

sgld_online_approximation's People

Contributors

pawni avatar

Watchers

James Cloos avatar CMU学Drama 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.