Why has R, despite quirks, been so successful?
blog.revolutionanalytics.com
blog.revolutionanalytics.com
from machinelearning import svm
with open('/home/me/programming/data.csv') as f:
data = f.read()
print(svm(data))
That's why R, which is an awful, buggy, and weird language, is so pleasant to use for stats and ML. import pandas as pd
from sklearn.linear import SVC
df = pd.read_csv('/home/me/programming/data.csv')
y = df['label']
X = df.drop('label', axis=1)
clf = SVC()
clf.fit(X, y)
... Most of the things have a similar API, except for when I veer off into say deep-learning land.This is not to say that R is a bad language, or that R does not have equally nice API's for this stuff; but I feel that in your case its a familiarity of language thing.
Scikitlearn and statsmodels are known as being specifically easy to use with a uniform API that disparate R packages lack(though this is somewhat fixed with caret).
Further, for bayesian inference, Pymc 3 is more powerful and concise than training a model in stan.
One consequence of that is that R has a lot of 'non-programmer programmers', statisticians and domain experts. Some of them write libraries that encode their domain knowledge. Then over time that adds up to having library support for more different types of analysis than any other language. I personally dislike R as a language, but I often end up using it because it has a library for some task that just doesn't exist in Python.