Live data from Hacker News

Ask HN: What is the best way to learn Machine Learning in Python?

news.ycombinator.com

1–10 of 50 posts

Ask HN: What is the best way to learn Machine Learning in Python?

#1
I am comfortable in coding, also familiar with python programming. What approach should i follow to learn machine learning with in SHORT TIME.

Should i start with a book(if yes which one), or with a machine learning library or with a project or with complete machine learning algorithm implementation in python.

Please provide me step by step guide which i should follow (with the source links and references[if possible]) to learn machine learning in one or two months.

Re: Ask HN: What is the best way to learn Machine Learning in Python?

#2
Machine Learning is a sub-field of computer science and an area of intense current research. It has nothing to do with Python (a programming language) except that some machine learning algorithms might be implemented in Python.

You might find Andrew Ng's Stanford Coursera course a good place to start. https://www.coursera.org/learn/machine-learning/home/info.

Re: Ask HN: What is the best way to learn Machine Learning in Python?

#3
I liked "Programming Collective Intelligence" http://www.amazon.com/Programming-Collective-Intelligence-Bu..., but it might be a little dated (in not using the latest libraries). It's a good way to learn some simple algorithms (optimization, clustering).

Also, rather than learning ML in 2 months (which is a very unfocussed and unattainable goal) -- try to narrow it down to some problem domain. You'd get better recommendations if you are more specific.

Re: Ask HN: What is the best way to learn Machine Learning in Python?

#4

Machine Learning is a sub-field of computer science and an area of intense current research. It has nothing to do with Python (a programming language) except that some machine learning algorithms might be implemented in Python. You might find Andrew Ng's Stanford Coursera course a good place to start. https://www.coursera.org/learn/machine-learning/home/info .

Well, you could certainly argue that python has the best machine learning libraries. So it's at worst a relevant programming language to the field.

edit: +1 to Andrew Ng's Coursera course though!

Re: Ask HN: What is the best way to learn Machine Learning in Python?

#7

Machine Learning is a sub-field of computer science and an area of intense current research. It has nothing to do with Python (a programming language) except that some machine learning algorithms might be implemented in Python. You might find Andrew Ng's Stanford Coursera course a good place to start. https://www.coursera.org/learn/machine-learning/home/info .

"Introdocution to Statistical Learning" by Trevor Hastie et al. [1] They have a free online class through Stanford [2] Sign in to their system and you can take the archived version for free.

ISL is an excellent, free book, introducing you to ML, you can go deeper, but, to me this is where I wish I'd started. I am taking the Data Science track at Coursera (on Practical Machine Learning now) and I am kicking myself that I didn't start with ISL instead.

Now, I know you specifically asked about Python, but the concepts are bigger than the implementation. All of these techniques are available in Python's ML stack, scikit-learn, NumPy, pandas, etc. I don't know of the equivalent of ISL for Python, but if you learn the concepts and you're a programmer of any worth, you will be able to move from R to Python. Maybe take/read ISL, but do the labs in Python, that might be a fun way to go.

Lastly, to go along with ISL, "Elements of Statistical Learning" also by Hastie et al is available for free to dive deeper [3]

[1] -- http://www-bcf.usc.edu/~gareth/ISL/

[2] -- https://lagunita.stanford.edu/courses/HumanitiesandScience/S...

[3] -- http://statweb.stanford.edu/~tibs/ElemStatLearn/

Re: Ask HN: What is the best way to learn Machine Learning in Python?

#10
post #9

Peter Norvig's Artificial Intelligence: http://www.amazon.com/Artificial-Intelligence-Modern-Approac... Has plenty of examples in Python. You can also look at different Udacity courses. They have a couple dealing with ML with Python.

I have Norvig's book, I'm not sure I'd recommend that as an introduction ;) Awesome book though!
Post reply on HN