BayTorch - Bayesian layers for PyTorch
Project description
BayTorch - Bayesian layers in PyTorch
Bayesian layers are probabilistic layers where weights are stochastic and sampled from the posterior distribution or an approximation.
So far, this module includes diagonal Gaussian linear and convolutional layers with mean and standard deviation of every weight as learnable parameters, as well as an implementation of the variational free energy loss for stochastic gradient VI according to the Bayes-by-Backprop algorithm [1].
[1] Blundell et al., Weight Uncertainty in Neural Networks, 2015.
Installation
Install from PyPI
pip install baytorch
or clone the repository, build and install from source
git clone https://jugit.fz-juelich.de/ias-8/baytorch.git && cd baytorch
python -m build
pip install dist/baytorch*whl
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for baytorch-0.0.1.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35aec941644a08ce10d0048df9265d5b3c3a7c82898975ee4c57ce38b26808c1 |
|
MD5 | 8a1d5e775223fe6fa7f40cd177da7740 |
|
BLAKE2b-256 | 97d6badd867839d7a7cbc4bce525b3984ee97edcae9cd1e21b479dfaa06d180a |