Skip to content

wiseodd/last_layer_laplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important!

LLLA, among other Laplace-approximation flavors are available in the easy-to-use laplace-torch library: https://github.com/AlexImmer/Laplace.

Please use that library instead of this code repository!


Last-layer Laplace approximation (LLLA)

Code examples of the last-layer Laplace approximation method used in "Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networks" paper (ICML 2020). See bnn_laplace.ipynb and bnn_laplace_multiclass.ipynb. Codes for reproducing the paper's results are in the paper directory.

Requirements

  • PyTorch
  • Scikit-learn
  • Matplotlib
  • Seaborn
  • Numpy
  • BackPack

Credits

About

Last-layer Laplace approximation code examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published