Academy K

Implementing an RBM

HardCodingRBMimplementationCD

Related module: Ising models and Boltzmann machines

Problem statement

Implement a Restricted Boltzmann Machine with:
- Binary visible and hidden units
- Contrastive Divergence training (CD-1)
- Generation via Gibbs sampling

Include methods for training on data and generating new samples.

Practise this problem

Verify you understand it—not just that you read the answer.

Learn the foundations

The Thermodynamic Computing track covers this topic and more in depth.