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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69120f2fae860353bf8a92d5ca0cf36f9f77b3f55470914889737be5809c1f0b
|
|
| MD5 |
ba2c54ecd666d3fc8f0680b7adf747c8
|
|
| BLAKE2b-256 |
fdda5b8905c80199ee6008f51178fa575941e846f36e03f18d228a1627454dab
|
Provenance
The following attestation bundles were made for bnn_pytorch-1.0.0.tar.gz:
Publisher:
release.yml on RonMcKay/bnn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bnn_pytorch-1.0.0.tar.gz -
Subject digest:
69120f2fae860353bf8a92d5ca0cf36f9f77b3f55470914889737be5809c1f0b - Sigstore transparency entry: 2533422890
- Sigstore integration time:
-
Permalink:
RonMcKay/bnn@e39309a0d07dff640fdfe6917e01c3281cfec82b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/RonMcKay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e39309a0d07dff640fdfe6917e01c3281cfec82b -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e7f6936930c6292b33c030e58cd624cc855261336182256c9db400fc8e822b7
|
|
| MD5 |
33178bb0bd5c4b9728af178a9c0d668f
|
|
| BLAKE2b-256 |
36832d0764c21267596c4b7e9e9a23992e0552bed5ef624358edb08156deb2a3
|
Provenance
The following attestation bundles were made for bnn_pytorch-1.0.0-py3-none-any.whl:
Publisher:
release.yml on RonMcKay/bnn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bnn_pytorch-1.0.0-py3-none-any.whl -
Subject digest:
4e7f6936930c6292b33c030e58cd624cc855261336182256c9db400fc8e822b7 - Sigstore transparency entry: 2533423106
- Sigstore integration time:
-
Permalink:
RonMcKay/bnn@e39309a0d07dff640fdfe6917e01c3281cfec82b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/RonMcKay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e39309a0d07dff640fdfe6917e01c3281cfec82b -
Trigger Event:
push
-
Statement type: