News for hackers. Stuff that matters.
Re:The Most Popular Language for Machine Learning by minimaxir on Thursday December 22, 2016 @02:43PM (#13239751)
Everytime a "what's the best language for Machine Learning/Data Science?" thread pops up, it always devolves into a flame war between "real data analysts use R" and "Python has thousands more libraries!". (most recent example 16 days ago: https://news.ycombinator.com/item?id=13110230 )

My response is always use-the-most-appropriate-tool-for-the-job-dammit and don't pigeon-hole yourself into one language, since each language has their pros and cons. I am very tempted to write an HN autocomment bot at this point. (in Python instead of R, of course, since that's the most appropriate tool for this job)

Re:The Most Popular Language for Machine Learning by PierreRochard on Thursday December 22, 2016 @03:28PM (#13240107)
That's a trade-off. Is the cost of learning and context switching between languages/frameworks less than the benefit of using a tool that is X% more appropriate?
Re:The Most Popular Language for Machine Learning by lacampbell on Thursday December 22, 2016 @04:32PM (#13240571)
Are R and Python really your only choices? Basic competency in machine learning is on my todo list, and I don't relish the thought of using either language.
Re:The Most Popular Language for Machine Learning by joshvm on Thursday December 22, 2016 @05:33PM (#13240993)
There is a pro for Python in that it makes machine learning really easy, or at least incredibly accessible. You can write and test classifiers in about 5 lines of Python using scikit-learn. The second point is that virtually all the latest deep learning packages come with Python frontends by default nowadays. For stats you could also use SPSS.

The other advantage of Python is that as a scripting language it's very powerful for data wrangling and pre-processing, without needing all the boilerplate that e.g. C++ would require.

Re:The Most Popular Language for Machine Learning by IndianAstronaut on Thursday December 22, 2016 @07:38PM (#13241833)
Not to join a flame war, but R makes it pretty easy to test multiple models on a single dataset as well. I have also noticed it does better stats and missing data handling out of the box.
Re:The Most Popular Language for Machine Learning by suresk on Thursday December 22, 2016 @05:55PM (#13241142)
I have played around with scikit-learn and love how simple and easy it is to work with, but the story for scaling it doesn't seem super straightforward - is this something anyone here has experience with?

I built a recommendation system in Spark earlier this year that used terabytes of input and would run it on a 40 node EMR cluster so it took less than half an hour. It wasn't trivial to make it run in a clustered environment, but it wasn't very hard either.

Re:The Most Popular Language for Machine Learning by pwang on Friday December 23, 2016 @07:39AM (#13244446)
Out of curiosity, were you using spark-scala or pyspark?
Re:The Most Popular Language for Machine Learning by suresk on Friday December 23, 2016 @12:14PM (#13245845)
I was using scala
Re:The Most Popular Language for Machine Learning by stewbrew on Friday December 23, 2016 @02:50AM (#13243512)
If you consider SPSS as an alternative, you'll probably really have no use for R. I agree that Python is more approachable for people with a CS background (unless your fan of array processing languages) but R actually is a nice language for data centric tasks.
Re:The Most Popular Language for Machine Learning by VodkaHaze on Thursday December 22, 2016 @05:34PM (#13240997)
Julia is another option. You can even call R and python code from a Julia REPL.

You generally want an interactive language, though, because there is an iterative cycle in prototyping models.

Re:The Most Popular Language for Machine Learning by AlexCoventry on Friday December 23, 2016 @01:01AM (#13243160)
They are not the only ones, but python is definitely the one which is likely to get you the most productivity fastest.
Re:The Most Popular Language for Machine Learning by madenine on Thursday December 22, 2016 @04:55PM (#13240715)
R and Python are not your only options. Check out the article for some other languages people are using.

R and Python are probably the two with the most support/community materials around them - lots of tutorials, libraries, guides etc.

Re:The Most Popular Language for Machine Learning by jsemrau on Friday December 23, 2016 @12:53AM (#13243144)
Which is the one main reason why PHP is still around. If you are starting a new language or a new project, it is better to have examples and guides available.

I am preferring python to "R" because it gives me better search results.

Re:The Most Popular Language for Machine Learning by slowmovintarget on Monday December 26, 2016 @10:08PM (#13261035)
Given that the article mentions many library implementations in Java, that puts JVM languages on the table. While Scala may be a good one, which the article mentions, that also puts Clojure on the table as well.
Re:The Most Popular Language for Machine Learning by jfpuget on Tuesday December 27, 2016 @07:32AM (#13262725)
Just added clojure to the query to see what it gives. You can do it too, simply follow the link I give in the article. Closure is a bit less popular than Julia, hence not significant at this point. See https://www.indeed.com/jobtrends/q-python-and-%28%22machine-...
Re:The Most Popular Language for Machine Learning by xapata on Thursday December 22, 2016 @06:41PM (#13241509)
> don't relish the thought of using either language

Why not?

> only choices

Obviously not, according to the linked article. However, many people like Python and/or R. Perhaps you should find out why before dismissing their choices.

Re:The Most Popular Language for Machine Learning by cttet on Thursday December 22, 2016 @09:23PM (#13242301)
"Everytime a "what's the best language for Machine Learning/Data Science?" thread pops up,"

there will always be someone saying your statement as well.

Re:The Most Popular Language for Machine Learning by reflexive on Thursday December 22, 2016 @11:19PM (#13242791)
use-the-most-appropriate-tool-for-the-job-dammit

Wow, and to think some fools think the most inappropriate tool should be used.

Re:The Most Popular Language for Machine Learning by brightball on Thursday December 22, 2016 @04:33PM (#13240581)
Given how often it comes up, you might be better off using Erlang\Elixir for concurrency sake.
Re:The Most Popular Language for Machine Learning by poetic on Friday December 23, 2016 @11:32AM (#13245570)
Writing ML in Elixir and be able to natively integrate the code in a Phoenix would be great. With Elixir I think the problem is the lack of libraries, especially ML libraries..
Re:The Most Popular Language for Machine Learning by cutler on Thursday December 29, 2016 @05:19PM (#13280669)
Elixir, I'm afraid, is the wrong tool for ML. Numeric computation is Erlang's weak spot.