Lurker News
By getting into machine or deep learning I mean building upto a stage to do ML/DL research. Applied research or core theory of ML/DL research. Ofcourse, the path to both will quite different.

Standing in 2022, what are the best resources for a CS student/decent programmer to get into the field of ML and DL on their own. Resources can be both books or public courses.
The target ability:
1. To understand the theory behind the algorithms
2. To implement an algorithm on a dataset of choice. (Data cleaning and management should also be learned)
3. Read research publications and try to implement them.

Comments (203) 62 threads

alanfranz8 replies#
My 2c (not exhaustive for what you want to do, probably):

1) Get some statistics/probability basics. It's full of people (you can see a lot of analyses on Kaggle) that "do machine learning" but make very silly mistakes (e.g. turn categorical data into a float and use it as a continuous variable when training a model).
2) take a look at traditional machine learning approaches. Nowadays you're swamped by DL (a lot of good suggestions on this thread, I won't chime in), and you miss the fact that, sometimes, a simple decision tree, or dimensionality reduction approaches (e.g. PCA or ICA) can yield an incredible value in a very short time on huge datasets.
I had written a fairly short post about it when I finished my georgia tech path https://www.franzoni.eu/machine-learning-a-sound-primer/
3) It can take a lot of time to become effective in ML, effective as in, what you _manually create_ is as effective as picking an existing trained model, fine tune it, and use it. This can be frustrating: low hanging fruits are pretty powerful and you don't need to understand a lot about ML algorithms to pick them up.
4) Consider MOOCs or online classes. I took Georgia Tech OMSCS, I can vouch for it and some classes force you to be a data scientist and read papers as well, and you can have "real world" recognition and discuss with your peers, which is useful!

kqr#
I second learning the statistics/probability basics.

Your first model should always be something that predicts a constant value, or maybe in really complicated cases something like a linear/logistic regression. Then you have a baseline to compare more advanced approaches to. But in order to understand how to use linear regression well, you need to understand how it works in the first place.
Also experiment structure, sampling design, hypothesis testing, etc. will tell you a lot about what conclusions you can and cannot draw from observational data, which is what a lot of ML is about.

bitL#
OMSCS is less intense than SCPD. OMSCS has major deliveries approximately every two-three weeks whereas SCPD every week with a similar depth. UTexas' MSDSO is even more relaxed. So if you want to save time, Stanford SCPD it is.
nkzd2 replies#
I am a CS major but I was always bad at math. Can you recommend your favorite resources for learning probability and statistics basics?
alanfranz#
“Introduction to statistical learning” is probably the good goto resource to start with. There’s a decent open source book on probability which I use when I need more in-depth understanding, but I don’t remember the title right now.

One clarification: you don’t need an extreme understanding of stats, probability, linear algebra, imho. If you already took college level classes, you’re likely to be fine.

poulsbohemian#
I was a CS major who made a 20 year career in software who was always told I was bad at math and struggled all through school with math. Somewhere about ten years into my career I began to realize that it wasn't really that I was bad with math, but that the way math is taught just doesn't work for most people. And, a lot of that math that you were expected to learn is really only directly applicable in very specific circumstances that you might not encounter in your career - which is not to say that the mental exercise of learning them weren't worthwhile!

So my point is, if it isn't making sense the way you are being taught, go explore other avenues. There's no way these machine learning algorithms would have made sense to me as a 20-something undergrad, but as a 40-something who can explore them via software rather than a whiteboard, they really aren't that complicated to get started.

liquorice1 reply#
They are probably not silly mistakes. Label encoding can be very useful for tree based models when the categories are ordinal, or when there are a high amount of categories.
alanfranz#
They are most of the times. You get a prediction with a meaningless float (unless the categories are ordinal, which isn’t so common), and categories can change their assigned number (happens in lots of analyses) at every run since they’re not properly sorted. Crawl a few notebooks, I spotted that error quite often.
spywaregorilla3 replies#
While stats and probability are very good, I can't say you need more than a good 101 level course for either. Really you're just looking for some good reasoning skills about how distributions and probability works.

This example: > It's full of people (you can see a lot of analyses on Kaggle) that "do machine learning" but make very silly mistakes (e.g. turn categorical data into a float and use it as a continuous variable when training a model).
Doesn't seem related to stats or probability at all to me. Just critical thinking skills

thegginthesky#
I prefer to use the approach "learn as you go". There's nothing to block someone from learning some basics, a library like Scikit Learn and then learn by doing examples.

But if anyone wants to become an expert into ML/DS, learning statistics and probability is fundamental. Books like A First Course in Probability, Introduction to Statistical Learning and Elements of Statistical Learning, to name a few, are very important.
A lot of the mistakes done in practice are based on a lack of understanding in sampling techniques, how statistical metrics can be misleading and so on.
First thing I learned in statistics is the difference between quantitative and qualitative information. If someone knows this before hopping into Kaggle, they know that categorical features can't be used as continuous features.

data_maan#
Depends on your goal. If you want to read/implement things from COLT article a 101 stats/probability won't really cut it.

Though for applied papers that's sometimes enough.
But heed Larry Wasserman's advice: "Using fancy tools like neural nets, boosting, and support vector machines without understanding basic statistics is like doing brain surgery before knowing how to use a band-aid."

alanfranz#
You need to understand that a category cannot be magically transformed into a float. Yeah, maybe not the best example on my part.

For the 101 level, I agree; I’d say you need a good understanding of basic probs and stats, rather than a vague understanding of advanced topics.
If you can spot when somebody says something about a dataset, the assertion is true only if the data is normally distributed, but there’s no checking about the actual distribution, you’re probably good to go.

icedchai2 replies#
Can you recommend a good basic stats/probability course? The last one I took was roughly in 1997 ;)
kwoff3 replies#
Thanks. BTW, I found there's a much cheaper ($80 -> $27) paperback version published a few days ago.

Continue this thread — 3 replies

abbusfoflouotne#
THWG
ford4 replies#
I work in ML - I might make 3 buckets for ML careers right now:

1. ML/DL Researcher
2. Data scientist - 20/80 engineering vs modelling
3. ML Eng - 50/50 (or 70/30) engineering vs modelling
People suggesting working in engineering to support ML are right that there's a lot of demand, but it's not what you're asking for.
Becoming an ML/DL researcher working on novel techniques or new models will be hard without academic research experience. Few companies are big enough to support true research, and the ones that are have a very high bar even for people with PHDs
What I call "data scientists" apply math/ML to real problems. The people I see here have a quantitative background like physics/math/CS. Often they have more general quantitative skills that go beyond ML. People like this will might work on things like fraud where an eng pipeline exists and small improvements in the model are valuable.
There are more of these roles than "true research" and they exist at small companies because it's applied. You can get into this with demonstrated evidence in side projects + a convincing background, but professional education might be the most sure way.
Finally - there's a lot of demand for engineers who can do both modeling and the requisite engineering. A model is a small part of what goes into a production ML feature - you need a data pipeline, automated retraining/prediction, a place to deploy the model, monitoring on eng stats + data stats, and the usual application backend/frontend to do something with the results.
You might be able to get into this with some demonstrated experience in side projects assuming you're a SWE already, and depending on your standards for where you want to work.

freedomben1 reply#
Would you (or somebody else) mind comparing/contrasting Data scientist/ML Eng a little more? I'm not sure I understand the difference (and perhaps like many roles/titles in our industry the line is blurry).

Never mind, I mentally flipped the numbers. I read 20/80 and 30/70 but it's actually 20/80 and 70/30. IOW, Data scientist spend a lot more time modeling, and ML eng spend a lot more time engineering. makes a lot of sense. I'll post this comment anyway in case it helps someone else.

jb3689#
I think of ML eng as more infrastructure and scalability. Possibly doing tasks like converting lab models into models that can be run at production scale. There is a blurry line between the two because it makes sense for some tasks to have shared ownership - just like you tend to have with people reaching across the stack to get something done in front-end vs. back-end web roles. As with anything, as you get more experience you get more comfortable jumping around and maintaining a larger set of concerns
bilsbie1 reply#
Is it possible to do 3 but stick to coding and not touch any dev ops work?

My nightmare is finding a role like that and realizing I’m just a dev ops guy.

ford#
If by devops you mean managing architecture + deployments vs only writing code, I imagine that exists at places with mature infrastructure, but honestly MLOps is developing so quickly that small to medium ML teams will go through some infrastructure churn.

The best advice I have is apply for jobs with descriptions that sound like what you want to do and clarify with the hiring manager/recruiter that it actually matches what you're looking for

jedberg1 reply#
I would add a fourth bucket -- ML Ops. Operating an ML based system is different enough from other systems that I'd consider that it's own specialty.
solardev1 reply#
Could you please provide some examples of what a ML Ops person might do/manage in their day to day jobs?
jedberg2 replies#
- Tracking changes is different. Not only do you have to track code changes, but also training data and model changes. You need to build systems that allow for this change management.

- Monitoring -- you have to build specialized monitoring to check for model degradations. Is the model still outputting valid/correct predictions? If not you need to roll back to an old model (see above).
Those are the two main ones.

Continue this thread — 2 replies

YetAnotherNick2 replies#
> Becoming an ML/DL researcher working on novel techniques or new models will be hard without academic research experience

This is not correct for current DL research. I know many undergrad engineers who wrote papers in top conferences. Current DL is mostly about implementing ideas, running experiments, having good sense of data etc. rather than theory. It's an open secret in DL that theories are just there to please reviewers and mostly gibberish and often time plain wrong. e.g. batch norm paper, where what they theorised about it was proven not just false but completely opposite. Still batch norm is heavily used because it works.

hansvm#
I think you're talking past each other -- doing solid ML research vs being well paid as such a researcher.
ford1 reply#
I didn't mean to imply it needed to be _graduate_ research - however it would be news to me if they were publishing at top conferences independently of a lab or research branch at a company.

How do the people you know go about it?

YetAnotherNick#
I didn't said they were publishing independently, just they did not had any academic research experience. e.g. in FAANG, it's not hard to get into teams which publishes ML papers. Also, I know one guy who contacted one professor, and they collaborated and published few papers while doing full time engineering job.
santiagobasulto7 replies#
Can I suggest a longer, but (I think) better route?

Try the Data/ML Engineer route. Instead of going directly into ML, try to work as a “supporter” of those doing ML. There’s a HUGE gap there, specially if you’re a good programmer.
There are a lot of people in the “pure” ML space, people with science background, with phDs, etc.
But there’s not enough people to support them: taking their models to producing, building their pipelines, etc.
If you get into Data/ML engineer, you’ll be working with these people and learning from them.
It’s a longer route for sure, but I think it can yield the highest success rate.

code51#
The trouble is that these positions try to filter you out asking for the same concepts in interviews. Nobody cares for how good a programmer you are. Data engineer positions don't work well if you want to touch cutting-edge concepts like big-scale DNNs. Sure you'd learn about deploying things but if your day-to-day job is not about e.g. ONNX, pytorch, JAX and massive scale training/inference pipelines, then you'd still be left out.

Chicken and egg problem. Probably the optimal way is just aiming for top ML research teams right from the start as a new grad. No other way is better.

jstx1#
Don't group data engineer and ML engineer together - they're very different positions. Data engineers typically don't do any ML (in fact teams often create DE positions to differentiate between the people who do ML and the people who don't); for ML engineers is varies depending on the team/company - some work more like applied data scientists, others focus almost entirely on infrastructure and deployment.
wokwokwok5 replies#
> I think it can yield the highest success rate.

At what?
If you want to be an SRE for a data platform, sure, but this pretty thankless work:
- cleaning up dodgy data
- cleaning up behind low code data pipelines and other painful integration work with systems that suck and sometimes just don’t work (like PowerBI).
- cleaning up behind data scientists that create models in arcane and imaginative ways and expect you to “productionise” them.
- cleaning up behind brain dead scheduling systems that fail unexpectedly.
- constant churn with partners and cloud products for whatever the latest hotness is.
If you want to be solving actual problems with ML, this is a dead end.
It’s IT support for the people doing real work.
…so, it depends on your goals. Getting a job? Sure! Everyone wants a workhorse who they can dump all the annoying problematic on-call tasks to.
Learning ML, contributing to research, building models?
This isn’t a path that leads there.

robertlagrant2 replies#
> It’s IT support for the people doing real work.

This is an appalling perspective. Good MLE skills seem a lot harder to find that good ML ones.

wokwokwok14 replies#
Someone who can engineer infrastructure, pipelines and fire fight production issues is hard to find, but that’s not the point I was making.

My apologies; It is real work; the point I was making is it’s not ML work, any more than writing a yaml file is ML work.
If you want to write yaml files, any number of possibilities exist.
If you want to work with machine learning, then don’t become a data engineer. The skills are, mostly, not related ML, and more closely aligned with SRE / devops.
It’s not infrastructure and helping build models as you mature and advance: it’s almost literally just infrastructure and fire fighting… in my, limited, 3 years of experience as such.

Continue this thread — 14 replies

psi75#
I think he meant "real work" from the perspective of the overeducated people who tend to end up in (and resent being in) corporate data science roles.

From the boss's perspective, the grungy IT support stuff is closer to real work (although the only thing that's actually respected in management, because it's what they do) than the shiny ML stuff that one star hire is allowed to do because it makes the company look cooler than it actually is.

LeetHacks2 replies#
It highly depends. I was hired for a small research group that didn't have a product in production. Got hired for programming, was on the table discussing and contributing to research within a couple months without any background in ML.
bitL6 replies#
In smaller teams/companies one gets to wear multiple hats. However, the term "Data engineer" was specifically created by/for ML folks to get rid of unpleasant repetitive work that has to be done but nobody looks forward to it.

Continue this thread — 6 replies

Continue this thread — 1 more reply

Continue this thread — 3 more replies

Continue this thread — 4 more replies

bluelightning2k3 replies#
FastAI. Specifically "Deep Learning for Coders" which was recently updated. https://course.fast.ai/

Do what the instructor recommends: watch each lesson once in its entirety and then re-watch it while playing along. But don't just type their commands verbatim. Try and do something slightly different.

Continue this thread — 3 replies

Load more comments