The Most Popular Language For Machine Learning and Data Science Is …
When it comes to choosing programming language for Data Analytics projects or job prospects, people have different opinions depending on their career backgrounds and domains they worked in. Here is the analysis of data from indeed.com with respect to choice of programming language for machine learning and data science.
By Jean-Francois Puget, IBM.
What programming language should one learn to get a machine learning or data science job? That’s the silver bullet question. It is debated in many forums. I could provide here my own answer to it and explain why, but I’d rather look at some data first. After all, this is what machine learners and data scientists should do: look at data, not opinions.
So, let’s look at some data. I will use the trend search available on indeed.com. It looks for occurrences over time of selected terms in job offers. It gives an indication of what skills employers are seeking. Note however that it is not a poll on which skills are effectively in use. It is rather an advanced indicator of how skill popularity evolve (more formally, it is probably close to the first order derivative of popularity as the latter is the difference of hiring skills plus retraining skills minus retiring and leaving skills).
When we focus on machine learning, we get similar data:
What can we derive from this data?
First of all, we see that one size does not fit all. A number of languages are fairly popular in this context.
Second, there is a sharp increase of popularity for all these, reflecting the increased interest in machine learning and data science over the last few years.
Third, Python is the clear leader, followed by Java, then R, then C++. Python lead over Java is increasing, while the lead of Java over R is decreasing. I must admit I have been surprised to see Java at the second place, I was expecting R instead.
Fourth, Scala growth is impressive. It was almost non existent 3 years ago, and is now in the same ballpark as more established languages. This is easier to spot when we switch to the relative view of the data on indeed.com:
Fifth, Julia popularity is not anywhere near the other, but there is definitely an uptick in the recent months. Will Julia turn in one of the popular languages for machine learning and data science? Future will tell.
If we ignore Scala and Julia in order to be able to zoom on the other languages growth, then we confirm that Python and R grow faster than general purpose languages.
It maybe that R popularity will pass that of Java soon given the difference in growth rate.
When we focus on deep learning with this query, the data is quite different:
There, Python is still the leader, but C++ is now second, then Java, and C at fourth place. R is only at the fifth rank. There is clearly an emphasis on high performance computing languages here. Java is growing fast though. It could reach second place soon, as for machine learning in general. R isn’t going to be near the top anytime soon. What surprises me is the the absence of Lua, although it is used in one of the major deep learning frameworks (Torch). Julia isn’t present either.
The answer to the original question should now be clear. Python, Java, and R are most popular skills when it comes to machine learning and data science jobs. If you want to focus on deep learning rather than machine learning in general, then C++, and to some lesser extent C, are also worth considering. Remember however, that this is only one way of looking at the problem. You may get a different answer if you are looking for a job in academia, or if you just want to have fun learning about machine learning and data science during your spare time.
What about my personal answer? I answered earlier this year in this blog. Besides having support from many top machine learning frameworks, Python is good fit for me because I have a computer science background. I would also feel comfortable with C++ for developing new algorithms, given I’ve programmed in that language for most of my professional life. But this is me, and people with different background may feel better with another language. A statistician with limited programming skills will certainly prefer R. A strong Java developer can stay with his favorite language as there are significant open sources with Java api. And a case can certainly be made for any of the languages on these charts.
Therefore, my advice would be to read other blogs discussing the same question before investing significant time in learning a language.
Update on December 23, 2016. This post is discussed on HackerNews.
Original post. Reposted with permission.
Bio: Jean-François Puget (@JFPuget), PhD, is an IBM Distinguished Engineer, working on Machine Learning and Optimization. He is based in Saint Raphael, France.
- Data Science 101: How to get good at R
- Dataiku DSS 3.1 – Now with 5 ML Backends & Scala!
- Tidying Data in Python
Top Stories Past 30 Days