官术网_书友最值得收藏!

Restricted Boltzmann machines

Restricted Boltzmann machines (RBMs) are an unsupervised class of machine learning algorithms that learn the internal representation of data. An RBM has a visible layer, v ∈ Rm, and a hidden layer, h ∈ Rn. RBMs learn to present the input in the visible layer as a low-dimensional representation in the hidden layer. All of the hidden layer units are conditionally independent, given the visible layer input. Similarly, all of the visible layers are conditionally independent, given the hidden layer input. This allows the RBM to sample the output of the visible units independently, given the hidden layer input, and vice versa.

The following diagram illustrates the architecture of an RBM:

Figure 1.19: Restricted Boltzmann machines 

The weight, wij ∈ W, connects the visible unit, i, to the hidden unit, j, where W ∈ Rm x n is the set of all such weights, from visible units to hidden units. The biases in the visible units are represented by b∈ b, whereas the biases in the hidden units are represented by c∈ c.

Inspired by ideas from the Boltzmann distribution in statistical physics, the joint distribution of a visible layer vector, v, and a hidden layer vector, h, is made proportional to the exponential of the negative energy of the configuration:

                      (1)

The energy of a configuration is given by the following:

       (2)

The probability of the hidden unit, j, given the visible input vector, v, can be represented as follows:

           (2)

Similarly, the probability of the visible unit, i, given the hidden input vector, h, is given by the following: 

           (3)

So, once we have learned the weights and biases of the RBM through training, the visible representation can be sampled, given the hidden state, while the hidden state can be sampled, given the visible state. 

Similar to principal component analysis (PCA), RBMs are a way to represent data in one dimension, provided by the visible layer, v, into a different dimension, provided by the hidden layer, h. When the dimensionality of the hidden layer is less than that of the visible layer, the RBMs perform the task of dimensionality reduction. RBMs are generally trained on binary data.

RBMs are trained by maximizing the likelihood of the training data. In each iteration of gradient descent of the cost function with respect to the weights and biases, sampling comes into the picture, which makes the training process expensive and somewhat computationally intractable. A smart method of sampling, called contrastive divergence—which uses Gibbs sampling—is used to train the RBMs. 

We will be using RBMs to build recommender systems in Chapter 6, The Intelligent Recommender System.

主站蜘蛛池模板: 犍为县| 东丽区| 岚皋县| 龙胜| 广西| 呈贡县| 全州县| 阳朔县| 名山县| 始兴县| 海伦市| 沙田区| 阿瓦提县| 纳雍县| 东明县| 容城县| 靖西县| 西丰县| 开阳县| 方山县| 曲阜市| 河北省| 固原市| 连城县| 凤山县| 麻城市| 南靖县| 松江区| 正阳县| 那坡县| 山东省| 肇源县| 阜新市| 姜堰市| 策勒县| 浦县| 福安市| 北辰区| 蓬溪县| 光山县| 兰西县|