Skip to main content

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


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

baytorch-0.0.1.dev0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page