Ask HN: Why is Python so popular for ML/DS?
1–10 of 21 posts
Re: Ask HN: Why is Python so popular for ML/DS?
#2Re: Ask HN: Why is Python so popular for ML/DS?
#3For example, I was trying to understand a batch normalization function defined as
def batchnorm_forward(x, gamma, beta, eps):
I can’t tell if gamma/beta are scalar or vector?
Re: Ask HN: Why is Python so popular for ML/DS?
#4Python (IPython/Jupyter) and R's interactive mode is really indispensable for this. Without restarting/re-initialize every variables and modules from beginning, you can run code snippet, run, edit part of code, run, add some code, plot something, run, repeat...
Re: Ask HN: Why is Python so popular for ML/DS?
#5Prototyping is what you usually do in ML/DS. You code incrementally and break things really fast. Python (IPython/Jupyter) and R's interactive mode is really indispensable for this. Without restarting/re-initialize every variables and modules from beginning, you can run code snippet, run, edit part of code, run, add some code, plot something, run, repeat...
Re: Ask HN: Why is Python so popular for ML/DS?
#6Re: Ask HN: Why is Python so popular for ML/DS?
#7If you are developing ML/DS models, a REPL environment comes very handy, there is IPython.
You'll find a large chunk of your time is spent on gathering, cleaning data, which Python really excels.
Make a website that integrates or visualize the data with Python? Sure
You can not find a second language this versatile and has a well supported ecosystem.
Re: Ask HN: Why is Python so popular for ML/DS?
#8Re: Ask HN: Why is Python so popular for ML/DS?
#9Data scientists aren't interested in learning industrial programming languages (C#, Java and maybe Go), they just want to do their job, and it doesn't require industrial language.
Re: Ask HN: Why is Python so popular for ML/DS?
#10If the question is about now, Python has lots of libraries to help in addition to the previously mentioned reasons. However Java still has better library support for NLP overall such as OpenNLP, Stanford CoreNLP, etc. NLP in Python is catching up though thanks to gensim, spacy, etc.