Coder Social home page Coder Social logo

jkdomoguen / uncertainty-aware-pytorch-implem Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 3.0 4.95 MB

The pytorch implementation of paper "Uncertainty-Aware Attention for Reliable Interpretation and Prediction" by Jay Heo, Hae Beom Lee, Saehoon Kim, Juho Lee.

Python 100.00%

uncertainty-aware-pytorch-implem's Introduction

Uncertainty-Aware-Pytorch-Implem

The pytorch implementation of paper "Uncertainty-Aware Attention for Reliable Interpretation and Prediction" by Jay Heo, Hae Beom Lee, Saehoon Kim, Juho Lee. Based on its Tensorflow implementation from the original authors here

Requirements Python 3.7.x, Pytorch 1.1.x

Provided in dir dataset: Physionet in numpy format predicting mortatility risk Other dataset can be found here for Physionet for MIMIC-III dataset.

This implementation was able to achieve ~76% AUCROC on the provided evaluation dataset which is short of the ~78% claimed in the paper. The configuration follows exactly the configuration in the original implementation by the authors.

uncertainty-aware-pytorch-implem's People

Contributors

jkdomoguen avatar

Stargazers

Hongjun Liu avatar  avatar  avatar Zhengyang Mao avatar  avatar

Watchers

James Cloos avatar  avatar paper2code - bot avatar

uncertainty-aware-pytorch-implem's Issues

about the implementation of sampling z

Hi, in the paper, they say that

we first sample random weights with dropout masks \omega and sample z such that z=g(x, \epsilon, \omega), \epsilon~N(0, I), with a pathwise derivative function g for reparameterization trick
(lines below Eq. 6)

and

we first sample dropout masks \omega (s) ∼ q_M(\omega|X, Y) and then sample z~p_θ(z|x^*, \omega)
(line below Eq. 7)

I have two questions:

  1. Why do they ignore KL divergence of q(z) and p(z) in loss function (i.e. Eq. 6)? Why are they equivalent?
  2. How do you implement 'first sample \omega, then sample z'? (I see that you sample z according to mu and sigma, but I don't what do they mean..)
    Thanks!

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.