Skip to main content

An implementation of bayesian neural networks which I use for research purposes.

Installation

pip install bnn-pytorch

bnn-pytorch requires Python 3.11 or newer and is imported as bnn.

The following repositories were partly a basis for this package:

Javier Antoran - Bayesian Neural Networks
Kumar Shridhar - PyTorch Bayesian CNN

Development

If you want to work on this repository, clone it (or your fork)

git clone https://github.com/RonMcKay/bnn.git

and install it using uv

uv sync

Run the checks locally with:

make test

This runs Ruff formatting/linting and the unit tests with a minimum 95% coverage requirement for the reusable bnn package. The bnn/examples modules are reviewed and smoke-tested separately, but are excluded from that coverage threshold.

Check the fully Bayesian example against the current public APIs without running its full training loop with:

make example-smoke

Please make all your pull requests against main.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bnn_pytorch-1.0.0.tar.gz (95.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bnn_pytorch-1.0.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file bnn_pytorch-1.0.0.tar.gz.

File metadata

  • Download URL: bnn_pytorch-1.0.0.tar.gz
  • Upload date:
  • Size: 95.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for bnn_pytorch-1.0.0.tar.gz
Algorithm Hash digest
SHA256 69120f2fae860353bf8a92d5ca0cf36f9f77b3f55470914889737be5809c1f0b
MD5 ba2c54ecd666d3fc8f0680b7adf747c8
BLAKE2b-256 fdda5b8905c80199ee6008f51178fa575941e846f36e03f18d228a1627454dab

See more details on using hashes here.

Provenance

The following attestation bundles were made for bnn_pytorch-1.0.0.tar.gz:

Publisher: release.yml on RonMcKay/bnn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bnn_pytorch-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bnn_pytorch-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for bnn_pytorch-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e7f6936930c6292b33c030e58cd624cc855261336182256c9db400fc8e822b7
MD5 33178bb0bd5c4b9728af178a9c0d668f
BLAKE2b-256 36832d0764c21267596c4b7e9e9a23992e0552bed5ef624358edb08156deb2a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for bnn_pytorch-1.0.0-py3-none-any.whl:

Publisher: release.yml on RonMcKay/bnn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page