Giter VIP home page Giter VIP logo

pac-bayes-in-medical-imaging's Introduction

PAC-Bayes-In-Medical-Imaging

Introduction

The repo for the pre-print work "PAC Bayesian Performance Guarantees for Deep(Stochastic) Networks in Medical Imaging." Available at: https://arxiv.org/abs/2104.05600

Preparation

Prerequisites

  • Python 3.6
  • Pytorch 1.4
  • numpy
  • tqdm
  • pandas
  • PIL

Dataset Preparation

  • Run get_data.sh to retrieve the ISIC2018 challenge data.
  • Run make_split.py to generate a train test split.
  • Run python3 -m src.main **kwargs to train models and compute bounds.

Training

To reproduce the results showed in the fig a, b, c, and d, please run the following scripts.

Fig a

  • sh scripts/fig_a/LW.sh
  • sh scripts/fig_a/LW-PBB.sh
  • sh scripts/fig_a/U-Net.sh
  • sh scripts/fig_a/U-Net-PBB.sh

Fig b

  • sh scripts/fig_b/sigma_prior_0.001.sh
  • sh scripts/fig_b/sigma_prior_0.005.sh
  • sh scripts/fig_b/sigma_prior_0.01.sh
  • sh scripts/fig_b/sigma_prior_0.02.sh
  • sh scripts/fig_b/sigma_prior_0.03.sh
  • sh scripts/fig_b/sigma_prior_0.04.sh
  • sh scripts/fig_b/sigma_prior_0.05.sh

Fig c

  • sh scripts/fig_c/sigma_prior_0.001.sh
  • sh scripts/fig_c/sigma_prior_0.005.sh
  • sh scripts/fig_c/sigma_prior_0.01.sh
  • sh scripts/fig_c/sigma_prior_0.02.sh
  • sh scripts/fig_c/sigma_prior_0.03.sh
  • sh scripts/fig_c/sigma_prior_0.04.sh
  • sh scripts/fig_c/sigma_prior_0.05.sh
  • sh scripts/fig_c/sigma_prior_0.1.sh
  • sh scripts/fig_c/sigma_prior_0.2.sh

Fig d

  • sh scripts/fig_d/LW.sh
  • sh scripts/fig_d/U-Net.sh

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.