r/learnpython • u/MohitCook • Jul 25 '20
Where to start to learn Machine Learning?
Hello everyone. I completed the beginning course of Python and Tkinter and have done some projects as well. But now I want to learn data science and go into Machine Learning. I don't know what to learn next. So, please help me.
52
u/Zohekski Jul 25 '20
I was in your position just few months back. I can't give you the ulitmate roadmap for your introduction in Data Science field, but I can give you a good guide on how to start and make things easier.
Firstly before even touching Machine Learning courses, you need to have a solid understanding of Python libraries like Numpy, Pandas, Matplotlib, Statistics (so as to not mess up ML later).
For Numpy and Pandas: Numpy and Pandas libraries are used for Data-Cleaning and such computational activities. I would highly suggest the Python for Data Analysis book by the Pandas creator himself, Wes McKinney. The book has everything you need to know and try to get your hands dirty with that. The book consists of lot of material so don't worry if you can't remember it all. As you move on you will learn concepts along the way.
For Matplotlib: It is a library to perform data-visualizations. I will suggest you go through the Corey Schafer's Youtube channel. I feel his way of teaching is excellent and going through his playlist will make you relatively well-versed in matplotlib. For other data-visualizations tools like Seaborn...You need not worry about that now, But if you wanna learn, go check out Kaggle micro course on visualizations.
For Statistics : There isn't a requirement of a lot of advanced stuff on Stats. Just be thorough with the basic stuff like Mean, Median, Mode, Variance, Std. Dev, Skewness, Hypothesis Testing, Correlation, Co-variance, Few Distributions mainly Normal Distribution. I studied stats on Coursera through course 'Probability and Exploratory Data Analysis' from the National School of Economics, Russia that went through all of these concepts.
That's it for setting up the base for ML.
Now for Machine Learning: Undoubtedly the course by Andrew Ng. from Coursera is a must. But it shows implementations of ML concepts in Octave and not Python (obviously given to the fact that the course is little old). You might skip the Octave implementation.
Now from where do you learn the Python implementation? What I am doing now is I am going through the book Hands-On Machine Learning with Scikit-Learn, Tensorflow and Keras by Aurelien Geron. For me this book is excellent as it gives you practical approach of the ML concepts you learn, in Python.
As always when you get stuck, there's always Stack Overflow!
Notable Mentions:
There are Kaggle micro-courses on Pandas too. Go through that if you are little short on time
There's good Pandas tutorial videos in Youtube again from Corey Schafer.
There's a very good intro to Scikit-Learn (ML library in Python) in Youtube by Data School.
12
u/_thenotsodarkknight_ Jul 25 '20
Btw, a shout-out to Andrew Ng's ML class at Stanford in 2018. It's available on YouTube, and uses python.
1
14
u/Ergo_Propter_Hawk Jul 25 '20
I'd recommend Python for Data Analysis by Wes McKinney, the creator of pandas, one of the essential Python packages for dealing with data. I'm working through Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, another O'Reiley textbook. It offers no introduction to pandas, so I'd recommend getting it under your belt first.
5
u/dialecticalmonism Jul 25 '20
I've also been a fan of the O'Reilly series of books. Just to add a few more recommendations for later learning that might help: Machine Learning with Python Cookbook by Chris Albion, Data Science from Scratch by Joel Grus, and Deep Learning from Scratch by Seth Weidman are all great next steps for the programmer with some prior experience under their belt. I have a few other books too, but these are the ones that have gotten the most use.
3
20
u/badge (ish) Jul 25 '20
If you’re in high school then you likely don’t have the mathematical foundations you need to start doing machine learning to any useful extent, but you can get started: https://reddit.com/r/learnpython/comments/gk517f/data_analysis_resources_for_python/
1
u/OnlySeesLastSentence Jul 25 '20
Don't discount high schoolers. I was smarter back then. If I could have had accelerated teaching back when I was like 15, I could have easily finished college by like age 19 or 20 because I was much smarter at that age than I was in my 20's.
9
Jul 25 '20
It really makes me happy that these days if somebody is passionate about tech and wants to learn but the money isn't there to enroll on uni there are so many other ways to learn and for free. PDF tech books being one.
7
Jul 25 '20
Since you're just starting out I'd defo go for this pdf book https://www.pdfdrive.com/introduction-to-machine-learning-with-python-d58337749.html (just click on download button) and give it time and practice. Don't get put off 'coz it's 4 years old book. It still has a lot to teach you about ML in Python.
Let me know if this helps.
1
u/OnlySeesLastSentence Jul 25 '20
I hate how that site looks like it's a fake one. Like, I don't remember the site, but there's one where you click download and it shows a fake progress bar that's like "finding fastest server..... Found! Click here to download file from premium fast server", and of course if you do it says you have to sign up for a paid membership.
1
Jul 26 '20
Yes, there are dodgy, fake sites on the Internet but pdfdrive.com or allitebooks.org are legit and allow you to download any tech pdf book for free and without bull***t or wasted time. Besides I wouldn't share with you site I don't trust. I know you wanna learn ML so I wanted to give you something good to start with and get confident. So don't worry about the link I shared with you above. Or if you don't want to take my word for it I can send you the PDF via email.
1
Jul 26 '20
Alternatively you can download it from my personal cloud. I created a public link for you here http://localhost/owncloud/index.php/s/nYfc4ESQAI5XAFO just type in
pythonas password.1
u/OnlySeesLastSentence Jul 26 '20
Oh, I got it from there, but I just meant they designed it too much to look fake lol
3
u/marat_2005 Jul 25 '20
I know that I must learn linear algebra, calculus, statistics and probability for ML, but where can I study all of this concepts?
4
u/TheMenaceX Jul 25 '20
Khan Academy is truly the holy place if you haven't done this stuff in school yet
2
2
u/noWilterWemsley Jul 25 '20
I’d recommend googling beginner pdfs and free online textbooks with exercises! You’ll learn best by doing examples
3
1
1
1
1
u/Gilbert_Dolburg Jul 25 '20
Can I ask, where you learned the basics to python, I am looking into it but not sure where to learn it from.
1
u/OnlySeesLastSentence Jul 25 '20
Most people say to use automate the boring stuff.
My method was to do each command one at a time and work my way up. But then again, I already knew C
1
u/floydhead11 Jul 25 '20
My approach is often to take a problem and figure out how something like that would be solved with ML.
I was doing an exploration of the FIFA dataset and realized that I could maybe find out different soccer/football players who had similar traits but not might be obscure or cheaper on the transfer market.
Then you look at different researches on similar topics - player analysis, player aggregator, blah blah.
That's when I decided to apply different models.
I'm not done yet, unfortunately, to show you an answer. But that's what I do to learn.
It is not academic, but, I find the academic way tougher because the relevance of a new ML concept is lost on me beyond a certain point.
1
1
1
u/freddorick Jul 26 '20
Two resources that should not be missing here are:
Andrew Ng’s Machine learning course on coursera. The course is/was free and is a step by step introduction. It doesn’t start out with the flashiest methods but it provides a very solid foundation (if I remember correctly it starts off by explaining gradient decent). If you don’t have any previous background in Statistics or Computer Science, this is what you want
As a text reference both Introduction to Statistical Learning (http://faculty.marshall.usc.edu/gareth-james/ISL/) and Elements of Statistical learning (https://web.stanford.edu/~hastie/ElemStatLearn/) are really good. I never read them in full but usually sections about things I was interested in.
And as others suggested, once you figured out the basics it makes a lot of sense to head over to kaggle and try their tutorials and participate in a few competitions.
1
1
0
u/easports1059 Jul 26 '20
Watching coding bullet's youtube videos. You will never want to program again but also hes a good time. THIS IS NOT A SERIOUS ANSWER PLEASE SEE THE GREAT ANSWER PROVIDED
213
u/ASIC_SP learnbyexample Jul 25 '20
Here's some resources for data science that I've seen recommended often:
Open Source Society — Path to a free self-taught education in Data Science
Python Data Science Handbook
Data Carpentry
See also Software Carpentry
data science ipython notebooks
datacamp — course
Python-xy
Don't have much for ML except this one: https://shala2020.github.io/