Skip to content

Numpy implementation of Restricted Boltzmann Machine.

Notifications You must be signed in to change notification settings

Jisung-Yoon/RBM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RBM

Numpy implementation of Restricted Boltzmann Machine.
This model generates MNIST images using RBM. Constrative Divergence(CD) and persistent CD(PCD) is implemeted.
Deep Belief Network can construct simply by stacking RBM. In DBN case, input dimension of later RBM layer should be equal to hidden dimension of forrmer RBM layer.

File discription

  • main.py: Main function of implemenation, construct the model, generates images, and calculate entropy of hidden unit
  • model.py: RBM class(CD, PCD algorithms)
  • downlad.py: Files for downlading MNIST data sets
  • ops.py: Operation functions
  • utils.py: Functions dealing with images processing.

Usage

First, download dataset with:

$ python download.py mnist

Second, write the main function with configuration you want.

Results

result

Releases

No releases published

Packages

No packages published

Languages