## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

#### Contrastive divergence

To train the RBM, one has to obtain the positive and negative phase correlations. However, the computation of the latter is intractable. A way to approach it is via Gibbs sampling techniques (see Chapter 14). The fact that we know analytically the conditionals, P(hi|v) and P(vj|h), allows us to apply Gibbs sampling by sequentially drawing samples, that is, $h(1)∽P(h|v(1))$, $v(2)∽P(v|h(1))$, $h(2)∽P(h|v(2))$, and so on. However, ...

## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required