Many people have been nagging me to write a beginner guide on deep learning. Geez, that's a difficult task - there are so many tutorials, books, lectures to start with, and the best way to start highly depends on your background, knowledge and skill sets. So it's very hard to give a simple guideline.

In this post, I will do something less ambitious: I gather what I think is the top-5 most important resources which let you to start to learn deep learning. Check out the "Philosophy" section on why this list is different from other lists you saw.

## Philosophy

There are many lists of resources of deep learning. To name a few, the "Awesome" list, the Reddit machine learning FAQ. I think they are quality resources, and it's fair to ask why I started "Top-Five" a year ago.

Unlike all the deep learning resource list you saw, "Top-Five" is not meant to be an exhaustive list. Rather it assumes you have only limited amount of time to study and gather resources while learning deep learning. For example, suppose you like to learn through on-line classes. Each machine/deep learning class would likely take you 3 months to finish. It will take you a year to finish all the classes. As a result, *having a priority* *is good.* For instance, without any guidance, reading Goodfellow's *Deep Learning* would confuse you. A book such as Bishop's *P**attern Recognition and Machine Learning* (PRML) would likely be a better "introductory book".

Another difference between Top-Five list and other resource list is that the resource* are curated*. Unless specified, I have either finished the material myself. So for classes I have at least audit the whole lecture once. For books I probably browse it once. In a way, this is more an "Arthur's list", rather than some disorganized links. You also see a short commentary why (IMO) they are useful.

## Which Top-Five?

As the number of sections in my list grow, it's fair to ask what resources should you spend time on first. That's a tough question because humans differ in their preference of learning. My suggestion is start from the following,

- Taking classes - by far I think it is the most effective way to learn. Listening+doing homework usually teach you a lot.
- Book Reading - this is important because usually lectures only summarize a subject. Only when you read through a certain subject, you start to get deeper understanding.
- Playing with Frameworks - This allows you to actually create some deep learning applications, and turn some your knowledge in real-life
- Blog Reading - this is useful but you better know which blogs to read (Look at the section "Blogs You Want To Read"). In general, there are just too many blog writers these days, and they might only have murky understanding of the topic. Reading those would only make you feel more confused.
- Joining Forums and ask questions - this is where you can dish out some of your ideas and ask for comments. Once again, the quality of the forum matters. So take a look of the section "Facebook Forums".

## Lectures/Courses

##### Basic Deep Learning (Also check out "The Basic-Five")

This are more the must-take courses if you want to learn the basic jargons of deep learning. Ng's, Karparthy's and Socher's class teach you basic concepts but they have a theme of building applications. Silver's class link deep learning concepts with reinforcement learning. So after these 4 classes, you should be able to talk deep learning well and work with some basic applications.

- Andrew Ng's Coursera Machine Learning class: You need to walk before you run. Ng's class is the best beginner class on machine learning in my opinion. Check out this page for my review.
- Andrew Ng's deeplearning.ai Specialization: In my view, the best transition class from Ng's Machine Learning class to more difficult classes such as cs231n and cs224n. Check our my quick impressions at here and review of one of the "Heros of Deep Learning" with Prof. Geoffrey Hinton.
- Fei-Fei Li and Andrew Karpathy's Computer Vision class (Stanford cs231n 2015/2016) : I listen through the lectures once. Many people just call this a Karpathy's class, but it is also co-taught by another experienced graduate student, Justin Johnson. For the most part this is the class for learning CNN, it also brings you to the latest technology of more difficult topics such as image localization, detection and segmentation.
- Richard Socher's Deep Learning and Natural Language Processing (Standard cs224d) : Another class I hadn't had chance to go through, but the first few lectures were very useful for me when I tried to understand RNN and LSTM. This might also be the best set of lecture to learn Socher's recursive neural network. Compare to Karpathy's class, Socher's place more emphasis on mathematical derivation. So if you are not familiar with matrix differentiation, this would be a good class to start with and get your hands wet.
- David Silver's Reinforcement Learning This is a great class taught by the main programmer of AlphaGo. It starts from the basic of reinforcement learning such as DP-based method, then proceeds to more difficult topic such as Monte-Carlo and TD method, as well as function approximation and policy gradient. It takes quite a bit of understanding even if you already background of supervised learning. As RL is being used more and more applications, this class should be a must-take for all of you.

You should also consider:

- Fast.ai's Deep Learning for Coders: a class which has generally good review. I would suggest you read Arvind Nagaraj's post which compare deeplearning.ai and fast.ai.
- Hugo Larochelle's Neural Network class : by another star-level innovator of the field. I only heard Larochelle's lecture in a deep learning class, but he is succinct and to the point than many.
- MIT Self Driving 6.S094 See the description in the session of Reinforcement Learning.
- Nando de Freita's class on Machine/Deep Learning : I don't have a chance to go through this one, but it is both for beginner and more advanced learners. It covers topics such as reinforcement learning and siamese network. I also think this is the class if you want to use Torch as your deep learning language.

##### Intermediate Deep/Machine Learning

The intermediate courses are meant to be the more difficult sets of classes. They are much more difficult to finish - Math is necessary. There are also many confusing concepts even if you already have Master.

- Hinton's Neural Network Machine Learning : While the topics are advanced, Prof. Hinton's class is probably the one which can teach you the most on the philosophical difference between deep learning and general machine learning. The first time I audit the class in 2016 October, his explanation on models based on statistical mechanical model blew my mind. I finished the course around 2017 April, which results in a popular review post. Unfortunately, due to the difficulty of the class, it was ranked lower in this list. (It was ranked 2nd, then 4th on the Basic Five, but I found that it requires deeper understanding than the Karparthy's, Socher's and Silver's. Later on when deeplearning.ai comes up, I shift Prof Hinton's course to one of the Intermediate classes. )
- Daphne Koller's Probabilistic Graphical Model: if you want to understand tougher concepts in models such as DBN, you want to have some background in Bayesian network as well. If that's the route you like, Koller's class is for you. But this class, just like Hinton's NNML, is notoriously difficult and not for faint of heart - you will be challenged on probability concepts (Course 1), graph theory and algorithm (Course ) and parameter estimation (Course 3).

##### Reinforcement Learning

Reinforcement learning has deep history by itself and you can think it has the heritage from both computer science and electrical engineering.

My understanding of RL is fairly shallow so I can only tell you which are the easier class to take, but all of these classes are more advanced. Georgia Tech CS8803 should probably be your first. Silvers' is fun, and it's based on Sutton's book, but be ready to read the book in order to finish some of the exercises.

- Udacity's Reinforcement Learning This is a class which is jointly published by Georgia Tech and you can take it as an advanced course CS8803. I took Silver's class first, but I found the material this class provides a non-deep learning take and quite refreshing if you start out at reinforcement learning.
- David Silver's Reinforcement Learning See description in the "Introductory Deep Learning" section.
- MIT Self Driving 6.S094 A specialized class in self-driving. The course is mostly computer vision, but there is one super-entertaining exercise on self driving, which mostly likely you want to use RL to solve the problem. (Here is some quick impression about the class.)

You should also consider:

- Berkeley's Deep Reinforcement Learning Potentially a third class about deep reinforcement learning (after Silver's and Schulmann's).

##### I heard good things about them......

- Oxford Deep NLP 2017 This is perhaps the second class of deep learning on NLP. I found the material interesting because it covers material which wasn't covered by the Socher's class. I haven't takem it yet. So I will comment later.
- CMU CS11-747 Neural Networks and NLP A great sets of lecture by Graham Neubig. Neubig has written few useful tutorial on DL in NLP. So I add his as more promising candidate here as well.
- NYU Deep Learning class at 2014: by Prof. Yann LeCun. To me this is an important class, with similar importance as Prof. Hinton's class. Mostly because Prof. LeCun is one of the earliest experimenters on BackProp and SGD. Unfortunately these NYU's lecture was removed. But do check out the slides though.
- Also from Prof. Yann LeCun, Deep Learning inaugural lectures.
- Berkely's Seminar on Deep Learning: by Prof.
- University of Amsterdam Deep Learning: If you have already audit cs231n and cs224d, perhaps the material here is not too new, but I found it useful to have a second source when I look at some of the material. I also like the presentation of back-propagation, which is more mathematical than most beginner class.
- Special Topics in Deep Learning. I found it great resource if you want to drill on more exoteric topics in deep learning.
- Deep Learning for Speech and Language More of my own curiosity on speech recognition. This course is perhaps is the only one I can find on DL on ASR. If you happen to stumble this paragraph, I'd say most software you find on-line are not really too applicable in real-life. The only exceptions are discussed in this very old article of mine.

##### For reference

- Virginia Tech Deep Learning at 2015
- University of Waterloo by Prof Ali Ghodsi
- MIT 6.S191 Introduction to Deep Learning
- Deep RL and Control from CMU
- Udacity Deep Learning and Deep Learning NanoDegree.

##### More AI than Machine Learning (Unsorted)

- Berkley CS 188
- http://aidblab.cse.iitm.ac.in/cs625/
- Stanford cs221
- edX AI
- MIT AI Courseware
- Prof. Markin Minsky's The Society of Minds

##### More about the Brain:

I don't have much, but you can take a look of my another list on Neuroscience MOOCs.

## Books

I wrote quite a bit on the Recommended Books Page. In a nutshell, I found that classics such as PRML and Duda and Hart are still must-reads in the world of deep learning. But if you still want a list, alright then......

- Michael Nielson's Deep Learning Book: or NNDL, highly recommended by many. This book is very suitable for beginners who want to understand the basic insights of simple feed forward networks and their setups. Unlike most text books, it doesn't quite go through the Math until it gives you some intuition. While I only went through recently, I highly recommend all of you to read it. Also see my read on the book.
- PRML : I love PRML! Do go to read my Recommended Books Page to find out why.
- Duda and Hart: I don't like it as much as PRML, but it's my first machine learning Bible. Again, go to my Recommended Books Page to find out why.
- The Deep Learning Book by Ian Goodfellow, Yoshua Bengio and Aaron Courville: This is
*the*book for deep learning, but it's hardly for beginner. I recently browse through the book. Here is some quick impression. - Natural Language Understanding with Distributed Representation by Kyung Hyun Cho. This is mainly for NLP people, but it's important to note how different that NLP is seen from a deep learning point of view.

Others: Check out my Recommended Books Page. For beginner, I found Mitchell's and Domingo's books are quite interesting.

## Frameworks

- Tensorflow : most popular, and could be daunting to install, also check out TFLearn. Keras became the de-facto high-level layer lately.
- Torch : very easy to use even if you don't know Lua. It also leads you to great tutorials. Also check out PyTorch.
- Theano : grandfather of deep learning frameworks, also check out Lasagne.
- Caffe : probably the fastest among the generic frameworks. It takes you a while to understand the setup/syntax.
- Neon : the very speedy neon, it's optimized on modern cards. I don't have a benchmarking between caffe and neon yet, but its MNIST training feels very fast.

Others:

- deeplearning4j: obviously in java, but I heard there are great support on enterprise machine learning.

## Tutorials

- Theano Tutorial: a great sets of tutorials and you can run it from CPU.
- Tensorflow Tutorial : a very comprehensive sets of tutorial. I don't like it as much as Theano's because some tasks require compilation, which could be fairly painful.
- char-rnn: not exactly a tutorial but if you want to have
*fun*with deep learning. You should train at least one char-rnn. Note that word-based version is available. The package is also optimized now as torch-rnn. I think char-rnn is also a great starting code for intermediate learners to learn Torch. - Misc: generally running the examples of a package can teach you a lot. Let's say this is one item.

Others: I also found Learning Guide from YeravaNN's lab to be fairly impressive. There is ranked resource list on several different topics, which is similar to the spirit of my list.

## Mailing Lists

- (Shameless Plug) AIDL Weekly Curated by me and Waikit Lau, AIDL weekly is a tied-in newsletter of the AIDL Facebook group. We provide in-depth analysis of weekly events of AI and deep learning.
- Mapping Babel Curated by Jack Clark. I found it entertaining and well-curated. Clark is more in the journalism space and I found his commentary thoughtful.
- Data Machina This is a link only letter. The links are quite quality.

Of course, there are more newsletter than these three. But I don't normally recommend them. One reason is many "curators" don't always read the original sources before they share the links, which sometimes inadvertently spread faked news to the public. In Issue #4 of AIDL Weekly, I described one of such incidences. So you are warned!

## Facebook Forums

That's another category I am going to plug shamelessly. It has to do with most Facebook forums have too much noise and administrator pay too little attention to the group.

- (Shameless Plug) AIDL This is a forum curated by me and Waikit. We like our forum because we actively curate it, delete spam and facilitate discussion within the group. As a result it become one of the most active group. It has 10k+ members. As of this writing, we have a tied-in mailing list as well as a weekly show.
- Deep Learning Deep Learning has comparable size as AIDL, but less active, perhaps because the administrators use Korean. I still find some of the links interesting and use the group a lot before administering AIDL.
- Deep Learning/AI Curated by Sid Dharth and Ish Girwan. DLAI follows very similar philosophy and Sid control posting tightly. I think his group will be one of the up-and-coming group next year.
- Strong Artificial Intelligence This is less about deep learning, but more on AI. It is perhaps the biggest FB group on AI, its membership stabilized but posting is solid and there are still some life in discussion. I like the more philosophical ends of the posts which AIDL usually refrained from.

## Non-trivial Mathematics You should Know

Due to popular demand, this section is what I would say a bit on the most relevant Math which you need to know. Everyone knows that Math is useful, and yes, stuffs like Calculus, Linear Algebra, Probability and Statistics are super useful too. But then I think they are too general, so I will name several specific topics which turns out to be very useful, but not very well taught in school.

- Bayes' Theorem: Bayes' theorem is important not only as a simple rule which you will use it all the time. The high school version usually just ask you to reverse the end of probabilities. But once it is apply in reasoning, you will need to be very clear how to interpret terms such as likelihood and priors. It's also very important what the term Bayesian really means, and why people see it as better than frequentist. All these thinking if you don't know Bayes' rules, you are going to get very confused.
- Properties of Multi-variate Gaussian Distribution: The one-dimensional Gaussian distribution is an interesting mathematical quantity. If you try to integrate it, it will be one of the integrals you quickly you can't integrate it in trivial way. That's the point you want to learn the probability integral and how it was integrated. Of course, once you need to work on multi-variate Gaussian, then you will need to learn further properties such as diagonalizing the covariance matrix and all the jazz. Those are non-trivial Math. But if you master them, it will helps you work through more difficult problems in PRML.
- Matrix differentiation : You can differentiate all right, but once it comes to vector/matrix, even the notation seems to be different from your college Calculus. No doubt, matrix differentiation is seldom taught in school. So always refer to useful guide such as Matrix Cook Book, then you will be less confused.
- Calculus of Variation: If you want to find the best value which optimize a function you use Calculus, if you want to find the best function/path which optimize a functional, you use Calculus of Variation. For the most part, Euler-Langrange equation is what you need.
- Information theory: information theory is widely used in machine learning. More importantly the reasoning and thinking can be found everywhere. e.g. Why do you want to optimize cross-entropy, instead of square error? Not only square error over-penalize incorrect outputs. You can also think of cross-entropy is learning from the
*surprise*of a mistake.

# Blogs You Should Read

- Chris Olah's Blog Olah has great capability to express very difficult mathematical concepts to lay audience. I greatly benefit from his articles on LSTM and computational graph. He also makes me understand learning topology is fun and profitable.
- Andrew Karparthy's Blog If you hadn't read "The Unreasonable Effectiveness of Recurrent Neural Networks", you should. Karparthy's articles show both great enthusiasm on the topic and very good grasp on the principle. I also like his article on reinforcement learning.
- WildML Written by Danny Britz, he is perhaps less well-known than either Olah or Karparthy, but he enunciate many topics well. For example, I enjoy his explanation on GRU/LSTM a lot.
- Tombone's Computer Vision Blog Written by Tomasz Malisiewicz. This is the first few blogs I read about computer vision, Malisiewicz has great insight on machine learning algorithms and computer vision. Many of his articles give insightful comments on relationship between ML techniques.
- The Spectactor written by Shakir Mohamad. This is my goto page on mathematical statistics as well as theoretial basis of deep learning techniques. Check out his thought on what make a ML technique deep, as well as his tricks in machine learning.

That's it for now. Check out this page and I might update with more contents. Arthur

This post is first published at http://thegrandjanitor.com/2016/08/15/learning-deep-learning-my-top-five-resource/.

You might also like Learning Machine Learning, Some Personal Experience.

If you like this message, subscribe the Grand Janitor Blog's RSS feed. You can also find me at twitter, LinkedIn, Plus, Clarity.fm. Together with Waikit Lau, I maintain the Deep Learning Facebook forum. Also check out my awesome employer: Voci.

(20160817): I change the title couple of times, because this is more like a top-5 list of a list. So I retitled the post as "top-five resource", "top-five", now I settled to use "top-five list", which is a misnomer but close enough.

(20160817): Fixed couple of typos/wording issues.

(20160824): Add a section on important Math to learn.

(20160826): Fixed Typos, etc.

(20160904): Fixed Typos

(20161002): Changed the section on books to link to my article on NNDL. Added a section on must-follow blogs.

(20170128): As I go deep on Socher's lectures, I boost up his class ranking to number 3. I also made Karparthay's lecture into rank number 2. I think Silver's class is important but the material is too advanced, and perhaps less of importance for deep learning learners. (It is more about reinforcement learning when you look at it closely.) Hinton's class is absolutely crucial but it requires more mathematical understanding than Karparthay's class. Thus the ranking.

I also 2 more classes (NYU, MIT) to check out and 2 more as references (VTech and UA).

(20161207): Added descriptions of Li, Karparthy and Johnson's class, Added description of Silver's class.

(20170310): Add "Philosophy", "Top-Five of Top-Five", "Top-Five Mailing List", "Top-Five Forums". Adjusted description on Socher's class, linked a quick impression on GoodFellow's "Deep Learning".

(20170312): Add Oxford NLP class, Berkeley's Deep RL into the mix.

(20170319): Add the Udacity's course into the mix. I think next version I might have a separate section on reinforcement learning.

(20170326): I did another rewrite last two weeks mainly because there are many new lectures released during Spring 2017. Here is a summary:

- I separate all "Courses/Lectures" session to two tracks: "Basic Deep Learning" and "Reinforcement Learning". It's more a decluttering of links. I also believe reinforcement learning should be separate track because it requires more specialized algorithms.
- On the "Basic Deep Learning" track, ranking has change. It was Ng's, cs231n, cs224d, Hinton's, Silver's, now it becomes Ng's, cs231n, cs224d, Silvers's, Hinton's. As I go deep into Hinton's class, I found that it has more difficult concepts. Both Silver's and Hinton's class are more difficult than the first 3 IMO.
- I also gives some basic description on the U. of Amsterdam's class. I don't know much about it yet, but it's refreshing because it gives different presentation from the "Basic 5" I recommend.

(20170412): I finished Hinton's NNML, added Berkley CS294-131 into the mix.

(20170620): Links up "Top-5" List with "Basic 5". Added a list of AI, added link to my MOOC list.

(20170816): Added deeplearning.ai into Basic 5. It becomes the new official recommendation to AIDL newcomers.

Appendix:

Links to process: http://ai.berkeley.edu/lecture_videos.html