• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

aspurdy/dbn: MATLAB code for training deep belief networks

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

aspurdy/dbn

开源软件地址(OpenSource Url):

https://github.com/aspurdy/dbn

开源编程语言(OpenSource Language):

MATLAB 100.0%

开源软件介绍(OpenSource Introduction):

MATLAB code for training deep belief networks.

Implementation is based on the following references:

  1. Hinton, G., Osindero, S., & Teh, Y.-W. (2006). A fast learning algorithm for deep belief nets. Neural Computation, 18(7), 1527–1554.
  2. Hinton, G. (2010). A practical guide to training restricted Boltzmann machines. Momentum, 9(1), 926.
  3. Palm, R. B. (2012). Prediction as a candidate for learning deep hierarchical models of data (Master's thesis).
  4. Larochelle, H., & Bengio, Y. (2008). Classification using discriminative restricted Boltzmann machines. In Proceedings of the 25th international conference on Machine learning (pp. 536–543). ACM.

I wrote this code as part of my undergraduate project several years ago. It was an attempt to reproduce results from Hinton's 2006 paper "A fast learning algorithm for deep belief nets". Inspired by Geoffrey Hinton's neural network simulation, a visualization of the generative learning process of a DBM, I also attempted to produce a similar sort of visualization. When it came to implementing the softmax units in the top-most "associative memory" layer of the DBN, I found the descriptions in Larochelle 2008 to be very useful - some of which are reproduced below.

The following samples were generated by randomly initializing the visible units in the associative layer and "clamping" the softmax units to one of the target classes. After each iteration of Gibbs sampling, a downward pass through the network was performed to generate a sample, which was saved to an image file. The animations show how the samples evolve over 200 iterations of Gibbs sampling. It's interesting to see how quickly the Gibbs sampling converges.

Softmax Units

To model the joint the distribution of input data and associated target classes, the visible layer contains an additional group of softmax units, used to represent the alternative target classes in the MNIST training data.

For the "associative memory" layer of the DBN, the energy function includes additional terms for the parameters of the softmax units, which respectively represent the softmax-to-hidden connections and the softmax biases.

Training the the associate memory layer of the DBN is the same as training an RBM with standard binary units, but the conditional probabilities have a slightly different form.

The conditional probability of a particular hidden unit being active includes additional terms for the softmax units.

To choose the most probable class under the model, the conditional distribution can be computed exactly for reasonable numbers of classes. In practice, the unnormalized probabilities can be used to determine the most probable class.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap