Giter Site home page Giter Site logo

restricted-boltzmann-machines-1's Introduction

Restricted-Boltzmann-Machines

Train an RBM to infer Bars-As-Stripes patterns and other dummy examples.

A few ideas that I used were taken from here, like how to iniatialize the weights as a function of the hidden/visible units. Biases were initialized to zero although there are better ways (see the guide) https://www.cs.toronto.edu/~hinton/absps/guideTR.pdf

I also used the below tutorial on RBM's. http://www.sciencedirect.com/science/article/pii/S0031320313002495

The contrastive divergence algorithm for learning the weights was done with k = 1 although you can change that. I used stochastic batch gradient descent where you shuffle the data at each iteration and plotted the error as you learn. After 3000 cycles you learn very little, after 4000 you don't really learn.

Bars-as-stripes: You have 30 matrices (4x4) (reshape them as vectors) that can either have horizontal lines or vertical lines(whenever a line is present you have a row/column of ones).

Once your RBM has learned the weights, the idea is to reconstruct a partial input by sampling from the joint distribution over the hidden and visible units.

TODO: Add more information on RBM theory and the proofs TODO: Refactor the huge for loops into matrix operations.

restricted-boltzmann-machines-1's People

Contributors

patricieni avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

sandy4321

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.