OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Bayesian Neural Network Pytorch

Bayesian Neural Network Pytorch is an open-source Python library for building Bayesian neural networks with PyTorch, with examples for regression, classification, network conversion, and output control.

Independent OpenViST project profile, based on linked sources.

Bayesian Neural Network Pytorch — Learning through the included regression and Iris classification demos
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when working in Python with PyTorch and you want the documented Bayesian-network examples or conversion and freeze/unfreeze functionality.

Who it is for

  • Python and PyTorch developers exploring Bayesian neural networks.
  • Practitioners prototyping regression or classification models with the documented examples.

Documented uses

  • Construct and train a Bayesian neural network for regression on custom data.
  • Train a Bayesian classifier on the Iris dataset.
  • Convert a basic neural network to a Bayesian network or back.
  • Freeze or unfreeze Bayesian-network behavior to demonstrate varying or repeatable outputs.
Before you choose

Requirements & limits

The repository identifies the project as MIT-licensed and documents installation through pip or a Git clone. The README lists Python 3.6 and PyTorch 1.2.0 as dependencies.

  • The documented dependency versions are Python 3.6 and PyTorch 1.2.0.
  • The usage examples focus on a two-layer network, simple custom regression data, and Iris classification.
  • Conversion and freeze/unfreeze behavior are demonstrated in separate notebooks.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install and import torchbnn

Install the package and make its Python module available for import.

Before you start

  • Python 3.6
  • PyTorch 1.2.0

Steps

  1. Install the package with the command below, or clone the repository using the documented Git URL.

    Documented command
    pip install torchbnn
  2. In Python, run import torchbnn.

Expected outcome

The `torchbnn` module is imported and ready to use.

Guide limitations

  • The documented dependencies are Python 3.6 and torch 1.2.0.
  • The README does not provide further configuration or usage steps.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
10 November 2026
Original website title
Harry24k/bayesian-neural-network-pytorch · Official homepage title · retained in its source language