(This article was first published on R – Giga thoughts … , and kindly contributed to R-bloggers) “Once upon a time, I, Chuang Tzu, dreamt I was a butterfly, fluttering hither and thither, to all intents and purposes a butterfly. I was conscious only of following my fancies as a butterfly, and was unconscious of my individuality as a man. Suddenly, I awoke, and there I lay, myself again. Now I do not know whether I was then a man dreaming I was a butterfly, or whether I am now a butterfly dreaming that I am a man.” from The Brain: The Story of you – David Eagleman “Thought is a great big vector of neural activity” Prof Geoffrey Hinton Introduction This is the third part in my series on Deep Learning from first principles in Python, R and Octave. In the first part Deep Learning from first principles in Python, R and Octave-Part 1 , I implemented logistic regression as a 2 layer neural network. The 2nd part Deep Learning from first principles in Python, R and Oc...