I can use our production code for heavy analytics or modeling, and just as easily take the data to my laptop Python interpreter in memory.
Ask HN: Why is Python so popular for ML/DS?
11–20 of 21 posts
Re: Ask HN: Why is Python so popular for ML/DS?
#12Python was big in scientific computing before ML went mainstream. In college we were taught using matlab Mathematica and sci-py. So there were a lot of stats and science libraries available in python. Academics typically don’t care about software engineering or typing so python is an easy approachable choice.
Re: Ask HN: Why is Python so popular for ML/DS?
#13Re: Ask HN: Why is Python so popular for ML/DS?
#14Re: Ask HN: Why is Python so popular for ML/DS?
#15Anecdotally, I have programmed in python, js, java, c#, go, C, C++, ruby, and php all in a professional environment and I'd have to say I prefer python the most. It is a very logically made language with a nice balance of abstraction and expressibility. My general language choosing path is: can I do it in python? If so, use python. Obviously you need to drop down to lower level languages for certain cases, but why wo…
Re: Ask HN: Why is Python so popular for ML/DS?
#16To be honest, I don’t understand its popularity. For 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?
#17To be honest, I don’t understand its popularity. For 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?
#181. It's easier to get started than Java, Go, etc.
2. It's faster to write/prototype. (The IPython REPL and Jupyter notebooks are awesome.)
3. The Python community is also very open source friendly and has significant momentum in third party packages like pandas, numpy, scipy, etc.
Check out some talks from past PyCons and you will see a very strong scientific presence more so than the other languages you mentioned.
Re: Ask HN: Why is Python so popular for ML/DS?
#19To be honest, I don’t understand its popularity. For 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?
#20It's just where a lot of the tools are. And why all the tool are in the python camp is probably b/c the academic/scientific community adopted the python ecosystem at a high rate.
Some adopted R as well but it just didn't take off the same way even though it really was/is a better fit for some use cases.