r/MachineLearning • • Mar 13 '17

Discussion [D] A Super Harsh Guide to Machine Learning

First, read fucking Hastie, Tibshirani, and whoever. Chapters 1-4 and 7-8. If you don't understand it, keep reading it until you do.

You can read the rest of the book if you want. You probably should, but I'll assume you know all of it.

Take Andrew Ng's Coursera. Do all the exercises in python and R. Make sure you get the same answers with all of them.

Now forget all of that and read the deep learning book. Put tensorflow and pytorch on a Linux box and run examples until you get it. Do stuff with CNNs and RNNs and just feed forward NNs.

Once you do all of that, go on arXiv and read the most recent useful papers. The literature changes every few months, so keep up.

There. Now you can probably be hired most places. If you need resume filler, so some Kaggle competitions. If you have debugging questions, use StackOverflow. If you have math questions, read more. If you have life questions, I have no idea.

2.7k Upvotes

313 comments sorted by

View all comments

15

u/ElderFalcon Mar 13 '17

wat

73

u/BullockHouse Mar 13 '17

It's a joke about all the 'super easy / beginner' guides to machine learning.

Which is fair. This stuff is complicated, and it's silly to think you can jump in and be effective without knowing what's going on with the underlying conceptual framework.

I do think some concepts are not well explained for people starting out who don't have a math background (finding out what a residual was took me an embarrassingly long time for how simple the intuition is). I suspect there's value in an educational resource that's thorough and grounded in the fundamentals, but goes to extra trouble to provide intuitions (some things are just easier to explain with a good diagram).

35

u/jimfleming Mar 13 '17

I think what a lot of people miss is that getting started is easy but doing something useful or novel is hard.

15

u/carlthome ML Engineer Mar 14 '17

What's a residual?

17

u/[deleted] Mar 14 '17

[removed] — view removed comment

4

u/carlthome ML Engineer Mar 15 '17

So when we say "residual learning" (like ResNet50) what we really mean is having layers that focus on learning the difference between the input and output?

4

u/[deleted] Mar 14 '17

Math makes it easier, unless you prefer four summation symbols rather than learning matrix multiplication.

8

u/BullockHouse Mar 14 '17

Sure, but if you have a crappy math background like me, it helps to have an intuition before you dive into a page of nasty LaTeX. Math is great for specifying something to great accuracy, but it's not especially accessible if you aren't familiar with the topic.

9

u/[deleted] Mar 14 '17

If you can afford any math I strongly recommend linear algebra basics. It simplifies everything you'll ever see in data science. Chapter 2 of Goodfellow's Deep Learning book (free online) is like 30 pages and covers an entire course of linear algebra with no prerequisite math needed.

3

u/BullockHouse Mar 14 '17

Thanks for the resource. My math education is... a work in progress.

1

u/CyperFlicker Jul 01 '25

Hey, I know this is like 8 years later, but I am wondering if I could dm you and ask you about some stuff.

I am also starting from a weak math background so I think your experience might be of some help to me :/

1

u/BullockHouse Jul 01 '25

Sure, go for it, although you have given me the troubling realization that eight years have passed and I *still* haven't got my math education to a place where I'm happy with it.

2

u/deeayecee Mar 14 '17

Can you recommend a problem set? Goodfellow recommends that in his lecture slides:

http://www.deeplearningbook.org/slides/02_linear_algebra.pdf

2

u/[deleted] Mar 14 '17

I haven't looked at problem sets outside of class, sorry. Some are too theoretical. You can learn most of what you use in data science by making up vectors and matrices and playing around on paper, checking your work with an online matrix multiplication tool.

Things to learn:

  • Vector addition (just add the elements)
  • Vector-vector multiplication (just multiply the elements and then add them together)
  • Matrix-vector multiplication (just vector-vector multiplication on each row of the matrix)
  • Matrix-matrix multiplication (just matrix-vector multiplication on each column of the right matrix)

Those slides are the essence of chapter 2. Also I don't think stats is that necessary. You only see two distributions in practice, and you can get by without the deeper insight that stats gives you. Linear algebra cleans up data science formulas so much and gives you a very high intuition payoff. Linear regression with matrices and vectors is a great example of this :)

1

u/Gus_Bodeen Mar 14 '17

I understood most of the slides just from what I learned in Andrew Ng's ML class. It was a rough first couple of weeks, but now reading the formula's is much simpler.