Git Product home page Git Product logo

sparse_measure_bnn's Introduction

Sparse Measure

Sparse Measure is a companion toy example for our tutorial "Hands-on Bayesian Neural Networks - A Tutorial for Deep Learning Users". It aims at showing how different learning strategies can be implemented for a BNN.

Dependancies

The code depends on:

  • numpy (tested with version 1.19.2),
  • scipy (tested with version 1.3.1),
  • pytorch (tested with version 1.8.1),
  • matplotlib (tested with version 3.1.1),

and one library from the base python distribution: argparse.

It has been tested with python 3.6.9.

Usage

The project is split into multiple files:

  • dataset.py implement the primitives to generate the dataset.

  • experiment.py contain a small script to run the experiment which generated figure 16 in the paper

  • viModel.py implement the variational inference layers and model we are using.

  • viExperiment.py is the script running the actual experiment. It can be called with the -h option to get a contextual help message:

    python viExperiment.py -h

Citation

If you use our code in your project please cite our tutorial:

@ARTICLE{9756596,
author={Jospin, Laurent Valentin and Laga, Hamid and Boussaid, Farid and Buntine, Wray and Bennamoun, Mohammed},
journal={IEEE Computational Intelligence Magazine}, 
title={Hands-On Bayesian Neural Networks—A Tutorial for Deep Learning Users}, 
year={2022},
volume={17},
number={2},
pages={29-48},
doi={10.1109/MCI.2022.3155327}
}

sparse_measure_bnn's People

Contributors

french-paragon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.