I'm looking to build from scratch an implementation of the wake-sleep algorithm also known as an unsupervised neural network. I plan on doing this in Python in order to better understand how it works. In order to facilitate my task I was wondering if anyone could point me to an existing implementation of this concept.
Guides, Open Source codebases, articles, etc. are all welcomed.