keras-adf: Assumed Density Filtering (ADF) Probabilistic Neural Networks¶
Release v19.1.0 (What's new?).
keras-adf provides implementations for probabilistic
Tensorflow/Keras neural network layers,
which are based on assumed density filtering.
Assumed density filtering (ADF) is a general concept from Bayesian inference, but in the case of feed-forward neural networks that we consider here
it is a way to approximately propagate a random distribution through the neural network.
The layers in this package have the same names and arguments as their corresponding
Keras version. We use Gaussian distributions for our ADF approximations, which are
described by their means and (co-)variances. So unlike the standard Keras layers,
keras-adf layer takes two inputs and produces two outputs (one for the means
and one for the (co-)variances).
$ pip install keras-adf
The next three steps should bring you up and running in no time:
The Overview section will show you a simple example of
keras-adfin action and introduce you to its core ideas.
The Examples section will give you a comprehensive tour of
keras-adf’s features. After reading, you will know about our advanced features and how to use them.
The API Reference reference is a quick way to look up details of all features and their options.
If at any point you get confused by some terminology, please check out our Glossary.
If you’d like to contribute to
keras-adf you’re most welcome.
We have written a short guide to help you get you started!
Additional information on the algorithmic aspects of
keras-adf can be found
in the following works:
Jochen Gast, Stefan Roth, “Lightweight Probabilistic Deep Networks”, 2018
Jan Macdonald, Stephan Wäldchen, Sascha Hauch, Gitta Kutyniok, “A Rate-Distortion Framework for Explaining Neural Network Decisions”, 2019