@@ -132,12 +132,12 @@ depiction of an RBM is shown below.
132132.. image:: images/rbm.png
133133 :align: center
134134
135- The energy function :math:`E(x ,h)` of an RBM is defined as:
135+ The energy function :math:`E(v ,h)` of an RBM is defined as:
136136
137137.. math::
138138 :label: rbm_energy
139139
140- E(v,h) = - b'x - c'h - h'Wx
140+ E(v,h) = - b'v - c'h - h'Wv
141141
142142where :math:`W` represents the weights connecting hidden and visible units and
143143:math:`b`, :math:`c` are the offsets of the visible and hidden layers
@@ -147,38 +147,38 @@ This translates directly to the following free energy formula:
147147
148148.. math::
149149
150- \mathcal{F}(x )= - b'x - \sum_i \log \sum_{h_i} e^{h_i (c_i + W_i x )}.
150+ \mathcal{F}(v )= - b'v - \sum_i \log \sum_{h_i} e^{h_i (c_i + W_i v )}.
151151
152152Because of the specific structure of RBMs, visible and hidden units are
153153conditionally independent given one-another. Using this property, we can
154154write:
155155
156156.. math::
157- p(h|x ) &= \prod_i p(h_i|x ) \\
158- p(x |h) &= \prod_j p(x_j |h).
157+ p(h|v ) &= \prod_i p(h_i|v ) \\
158+ p(v |h) &= \prod_j p(v_j |h).
159159
160160**RBMs with binary units**
161161
162- In the commonly studied case of using binary units (where :math:`x_j ` and :math:`h_i \in
162+ In the commonly studied case of using binary units (where :math:`v_j ` and :math:`h_i \in
163163\{0,1\}`), we obtain from Eq. :eq:`rbm_energy` and :eq:`energy2`, a probabilistic
164164version of the usual neuron activation function:
165165
166166.. math::
167167 :label: rbm_propup
168168
169- P(h_i=1|x ) = sigm(c_i + W_i x ) \\
169+ P(h_i=1|v ) = sigm(c_i + W_i v ) \\
170170
171171.. math::
172172 :label: rbm_propdown
173173
174- P(x_j =1|h) = sigm(b_j + W'_j h)
174+ P(v_j =1|h) = sigm(b_j + W'_j h)
175175
176176The free energy of an RBM with binary units further simplifies to:
177177
178178.. math::
179179 :label: rbm_free_energy
180180
181- \mathcal{F}(x )= - b'x - \sum_i \log(1 + e^{(c_i + W_i x )}).
181+ \mathcal{F}(v )= - b'v - \sum_i \log(1 + e^{(c_i + W_i v )}).
182182
183183**Update Equations with Binary Units**
184184
@@ -189,12 +189,12 @@ following log-likelihood gradients for an RBM with binary units:
189189 :label: rbm_grad
190190
191191 \frac {\partial{\log p(v)}} {\partial W_{ij}} &=
192- x ^{(i)}_j \cdot sigm(W_i \cdot x ^{(i)} + c_i)
192+ v ^{(i)}_j \cdot sigm(W_i \cdot v ^{(i)} + c_i)
193193 - E_v[p(h_i|v) \cdot v_j] \\
194194 \frac {\partial{\log p(v)}} {\partial c_i} &=
195- sigm(W_i \cdot x ^{(i)}) - E_v[p(h_i|v)] \\
195+ sigm(W_i \cdot v ^{(i)}) - E_v[p(h_i|v)] \\
196196 \frac {\partial{\log p(v)}} {\partial b_j} &=
197- x ^{(i)}_j - E_v [p(v_j|h)]
197+ v ^{(i)}_j - E_h [p(v_j|h)]
198198
199199For a more detailed derivation of these equations, we refer the reader to the
200200following `page <http://www.iro.umontreal.ca/~lisa/twiki/bin/view.cgi/Public/DBNEquations>`_,
0 commit comments