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 details)

Uploaded Python 3

File details

Details for the file baytorch-0.0.1.dev0-py3-none-any.whl.

File metadata

  • Download URL: baytorch-0.0.1.dev0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.64.1 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for baytorch-0.0.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 35aec941644a08ce10d0048df9265d5b3c3a7c82898975ee4c57ce38b26808c1
MD5 8a1d5e775223fe6fa7f40cd177da7740
BLAKE2b-256 97d6badd867839d7a7cbc4bce525b3984ee97edcae9cd1e21b479dfaa06d180a

See more details on using hashes here.

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