An open API service indexing awesome lists of open source software.

https://github.com/davidtranhq/pytorch-rbm

A restricted Boltzmann Machine trained using Persistent Contrastive Divergence implemented with Pytorch.
https://github.com/davidtranhq/pytorch-rbm

pytorch restricted-boltzmann-machine

Last synced: 2 months ago
JSON representation

A restricted Boltzmann Machine trained using Persistent Contrastive Divergence implemented with Pytorch.

Awesome Lists containing this project

README

          

# Restricted Boltzmann Machines

See the accompanying [post](https://davidtranhq.github.io/2022/05/23/generating-images-with-restricted-boltzmann-machines.html) for this model.

A **restricted Boltzmann machine** implemented with PyTorch. Trained with persistent contrastive divergence, momentum, and L2 weight decay.
`models/` contains the model parameters and the hyperparameters for a model trained on the MNIST dataset. The loss and generated examples for each model is pictured below.

Images generated from the model:

![Generation](results/generation.png)

Images reconstructed from the model:

![Reconstruction](results/reconstruction.png)

L1 loss of the model

![Loss](results/loss.png)

Visualization of the weights in random hidden units:

![Weights](results/weights.png)