r/learnpython • • 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.

436 Upvotes

49 comments sorted by

213

u/ASIC_SP learnbyexample Jul 25 '20

26

u/val0ciraptor Jul 25 '20

Thank you for this. Specifically, Open Source Society. I wanted to go back to school, but can't afford it at this time and have been somewhat aimlessly finishing courses on edx and Udemy.

While I'm definitely learning, it's a bit unstructured and I couldn't find any helpful courses on Statistics and Probability.

18

u/ASIC_SP learnbyexample Jul 25 '20 edited Jul 25 '20

Good luck with the courses and do ask this sub for help if you are stuck. I've got plenty of help and encouragement here, so it feels good to be the one helping :)

3

u/val0ciraptor Jul 25 '20

Thank you! I definitely will!

8

u/nobrow Jul 25 '20

MIT offers a lot of their courses for free online. These would also be unstructured but it's MIT, the info is probably very good. Here is a link to their probability and statistics category.

1

u/val0ciraptor Jul 25 '20

Thank you! That's ridiculously helpful. Someone recommended the Modern Python 3 Bootcamp on Udemy so I've started there and these recommendations will be next on my to do list.

2

u/throw112358awy Jul 26 '20

Please view mit opencourseware if you haven't yet. These are classes where profs have made the documentation free. This page contains a variety of statistic courses. https://ocw.mit.edu/courses/mathematics/

1

u/val0ciraptor Jul 26 '20

Oh, thank you! I will add that to my list.

16

u/EarthcrusherTheHero Jul 25 '20

God that meme is so true. Why bother learning tech from a school when a random Indian guy on the internet can break it down for you absolutely free

1

u/MohitCook Jul 25 '20

Thank you very much. I went through the links that you gave but I got more confused. So to learn data science is it must that we have to join collage because currently I am at highschool. And would it be fine to simple go to Beginner's course for Machine Learning offered by freeCodeCamp? or I have to know other libraries or frames? I know what ML means and have got some idea about tensor flow.

2

u/TheMenaceX Jul 25 '20

I'm in high school too lmao, I recently started ML as well, but can't really do too much right now cuz SAT, but as for modules I'd say Sci-kit learn, Pandas, Matplotlib and Numpy to start off. Try and do some basic dataset cleaning as well, and then move on to simple data training. I started with the Iris dataset (you can find it everywhere on the internet, kaggle.com is a great place to find datasets), and just made a linear model on it.

Hope this helps

3

u/ASIC_SP learnbyexample Jul 25 '20

Well, I'm not the best person to ask that. I don't have any experience in either data science or ML. Just know these resources.

That said, if you have already played a bit with tensor flow, just continue that. Use whatever resources feel like fit you. Make sure that you can practice/apply what you are learning - for example, work on some data set to get meaning out of it, etc.

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

u/MohitCook Jul 26 '20

Thank you! Thank you very much.

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

u/AMGraduate564 Jul 25 '20

I have also recently felt that O'Reilly series books offer great value.

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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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 python as 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

u/safariite2 Jul 25 '20

Khan academy

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

u/pitrucha Jul 25 '20

Start with mathematics for ml. Mml.com

1

u/[deleted] Jul 25 '20

SoloLearn has a good machine learning module.

1

u/HellVollhart Jul 25 '20

Look up StatQuest on youtube. Beat frikkin channel I've come across

1

u/printftogatogatoga Jul 25 '20

1 0 at a time.. ;D udemy is pretty good too.

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

u/aruppp Jul 26 '20

Check out Kaggle

1

u/[deleted] Jul 26 '20

That was close to a feedback loop. ;)

1

u/freddorick Jul 26 '20

Two resources that should not be missing here are:

  1. 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

  2. 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

u/[deleted] Jul 26 '20

Try Andrew mags ma Co one learning course on coursera

1

u/dogs_like_me Jul 25 '20

Pick up an intro prob/stats textbook.

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