<p>I don't know if you are looking for something in a library, but I've found <a href="https://github.com/jackklys/wake-sleep-modifications/blob/master/wakesleep/ws.py" rel="nofollow noreferrer">this</a> in a public Github (I've not checked deeply if it fits for you).</p>

<p>I hope that's what you're looking for.</p>

CC BY-SA 4.0
2019-03-06T17:47:02.390Z
That's definitely a start thank you! However it seems to build on tensor flow which is something I would like to avoid.
donkey
CC BY-SA 4.0
2019-03-06T10:45:51.243Z
2019-03-06T10:45:51.243Z
Angelo
<p>I found the following detailed and well documented <a href="https://github.com/vadim0x60/wakesleep/blob/master/WakeSleep.ipynb" rel="nofollow noreferrer">Python notebook</a>, which uses only NumPy.</p>

CC BY-SA 4.0
2019-05-22T14:49:23.757Z
2019-11-18T18:54:56.627Z
2019-11-18T18:54:56.627Z
TheCG
<p>I'm looking to build from scratch an implementation of the <a href="https://www.cs.toronto.edu/~hinton/absps/ws.pdf" rel="nofollow noreferrer">wake-sleep algorithm</a>, for unsupervised learning with neural networks. 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 (open-source) implementation of this concept. I'm also looking for articles or, in general, resources that could facilitate this task.</p>

<neural-networks><python><unsupervised-learning><resource-request><wake-sleep-algorithm>
Where can I find an implementation of the wake-sleep algorithm?
donkey
# Where can I find an implementation of the wake-sleep algorithm?

(Asked by: username_0 on 2019-03-05)

I'm looking to build from scratch an implementation of the [wake-sleep algorithm](https://www.cs.toronto.edu/~hinton/absps/ws.pdf), for unsupervised learning with neural networks. 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 (open-source) implementation of this concept. I'm also looking for articles or, in general, resources that could facilitate this task.

**Tags:** neural-networks, python, unsupervised-learning, resource-request, wake-sleep-algorithm


---

## 2 answers

### Answer by username_2 on 2019-05-22. Score: 3 | Accepted answer

I found the following detailed and well documented [Python notebook](https://github.com/vadim0x60/wakesleep/blob/master/WakeSleep.ipynb), which uses only NumPy.


---

### Answer by username_1 on 2019-03-06. Score: 1

I don't know if you are looking for something in a library, but I've found [this](https://github.com/jackklys/wake-sleep-modifications/blob/master/wakesleep/ws.py) in a public Github (I've not checked deeply if it fits for you).

I hope that's what you're looking for.

> **Comments:**
> **username_0**: That's definitely a start thank you! However it seems to build on tensor flow which is something I would like to avoid.  

---

