DEV Community

Discussion on: The best programming language for Artificial Intelligence and Machine Learning

Collapse
 
rctatman profile image
Rachael Tatman

My two cents: I'm a data scientist and I generally use Python for NLP work and R for working with tabular data, statistical analysis or visualization.

I'd personally recommend caret over MLR for R (I believe MLR is actually no longer under active development as the maintainers work on MLR3). I also don't know that R is actually slower than Python, especially since a lot of well-optimized libraries are actually C or C++. It can definitely feel slower if you're writing a lot of loops, however. This blog post has a nice overview of why loops in R are slow and how to avoid them :).