Giter Club home page Giter Club logo

bayesian-dl-experiments's Introduction

bayesian-dl-experiments

This repository contains the codes used to produce the results from the technical report Qualitative Analysis of Monte Carlo Dropout.

Nearly all the results were produced with PyTorch codes in this repo and ronald_bdl repository, except for Figure 5, Table 1 and Table 2, which were done with the codes from Gal and Ghahramani 2016.

ronald_bdl needs to be installed as a Python package before running the notebooks. This package contains pre-defined PyTorch NN models (ronald_bdl.models) and Dataset classes (ronald_bdl.datasets). Please run the following command using pip:

pip install git+https://github.com/ronaldseoh/ronald_bdl.git

If you want to modify the code within ronald_bdl, please clone/download the ronald_bdl repo, apply your changes, and install your version using the command pip install .

Please refer to the descriptions below for what each Jupyter notebook does:

  • experiment_comparison_toy.ipynb: This notebook was created to produce the results in the section 3.1: "Uncertainty Information" of the report where we wanted to visually analyze how tuning the parameters changes the predictive distribution captured by MC dropout, when trained on toy datasets where we define the actual data generating function and noise.
  • experiment_error_convergence_{1_uci_fcnet, 2_cifar10_simplecnn}.ipynb: Used to produce the result in the section 3.2: "Improvements in Predictive Performance and the section 4.1: "Number of Training Epochs". 1_uci_fcnet trains a fully-connected network with the UCI datasets originally used in Gal and Ghahramani 2016, and 2_cifar10_simplecnn trains a simple convolution NN with the CIFAR-10 dataset.
  • experiment_number_of_test_predictions_{1_uci_fcnet, 2_cifar10_simplecnn}.ipynb: Used to produce the result in the section 4.2: "Number of Test Predictions".

Note: While there are some references to Pyro in the code as we originally intended to implement a BNN using MCMC for comparison, The results using HMC are currently not included in the report due to some technical issues.

License

bayesian-dl-experiments is licensed under MIT license. Please check LICENSE.

bayesian-dl-experiments's People

Contributors

ronaldseoh avatar

Stargazers

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