Live data from Hacker News

Python, Machine Learning, and Language Wars (2015)

sebastianraschka.com

31–40 of 62 posts

Re: Python, Machine Learning, and Language Wars (2015)

#31
post #25
post #12

Earlier quoted context omitted.

I did that earlier today: pip install jupyter pip install numpy pip install scipy pip install scikit-learn pip install matplotlib The only problem I had was with OpenCV, which requires manual make installation if you want the contrib package. The other problem was when trying to install scikit-learn, it requires manual pip installation of scipy.

The reason you can't is because of the C libraries levaaged must be installed prior to install numpy and scipy. For example, you can't get through PyYaml unless python-dev is installed on Ubuntu. I am not sure if wheel would fix it but I don't think so.

Wheel is a binary distribution, so files would already be compiled and therefore python-dev would not be needed anymore.

Re: Python, Machine Learning, and Language Wars (2015)

#32
post #31
post #25

Earlier quoted context omitted.

The reason you can't is because of the C libraries levaaged must be installed prior to install numpy and scipy. For example, you can't get through PyYaml unless python-dev is installed on Ubuntu. I am not sure if wheel would fix it but I don't think so.

Wheel is a binary distribution, so files would already be compiled and therefore python-dev would not be needed anymore.

Is wheel not default? Or play it elementary :-) how would I avoid this issue in the future?

Re: Python, Machine Learning, and Language Wars (2015)

#33

I'm surprised the article doesn't mention Anaconda, which is Python with all the things he lists pre-installed for you. I've been a fan for some time now: https://www.continuum.io/why-anaconda

Another data point on Anaconda from microsoft's Azure ML team - we've been using Anaconda for the past few years and have been very happy with it. One key feature we like is that we can deploy a nearly identical suite of pkgs on Windows, Linux and MacOS w/o having to worry about mismatched versions, installation/update issues, etc.

Case in point - the Azure ML Jupyter notebooks run on a farm of Linux/docker machines:

https://blogs.technet.microsoft.com/machinelearning/2016/02/...

Once a model is built, it can be deployed for production/scale to the Azure ML backend which runs entirely on a farm of Windows machines.

Both environments have matching Anaconda distros running underneath which makes running on two different OS's practically a non-issue. In fact 95% of our users probably have no idea their notebooks & production site run two OS's (in large part thanks to Python, Linux, Docker, Anaconda, ... and lots of other great open source software).

Re: Python, Machine Learning, and Language Wars (2015)

#34
post #28

why pick just one language? with the polyglot Beaker Notebook, you can work with many languages, even in the same notebook, and your data is automatically translated between them. each of these languages has its strong point. there is always some library you want to use in some other language. or you want to collaborate with someone. or next year you change your mind and Julia is finally good enough. http://BeakerNot…

Knowing other languages is great, but there is very real overhead in learning them. Python is mature enough that you have mature libraries available for pretty much everything.

believe it or not, there are some people who know R and face overhead to learn Python. and they love ggplot2.

and frankly, Python has no libraries for interactive visualization in your browser because only JavaScript runs there.

etc.

Re: Python, Machine Learning, and Language Wars (2015)

#35
post #17
post #3

As someone who's switched from Ruby to Python (for now, because the latter is far easier to teach, IMO) and also put significant time into learning R, because of how strong ggplot2 is...I was really surprised at the lack of Google results for "switching from python to r" -- or similarly phrased queries to find guides on how to go from Python to R...in fact, that particular query will bring up more results for R -> Py…

As a predominantly Python-focused engineer, I've spent considerable time teaching myself R and there is a lot to like about R. For boutique statistical libraries especially. For instance, the enjoyment of using PySTAN is nowhere near as high as simply using STAN directly from R. However, when you dig into the R internals, and you learn about its generic function model of OO, and about the mangled history of S3 and S4…

It sounds a lot like perl5 back in the day. let's fuze sed grep awk and bash into one thing. It's got a great deal of whipupitude, you can make amazing stuff in an afternoon.

Re: Python, Machine Learning, and Language Wars (2015)

#36
post #12
post #10

Earlier quoted context omitted.

I also think that Anaconda is great. However, I hope that in the future we could install numpy, matplotlib, jupyter, etc. just using pip.

I did that earlier today: pip install jupyter pip install numpy pip install scipy pip install scikit-learn pip install matplotlib The only problem I had was with OpenCV, which requires manual make installation if you want the contrib package. The other problem was when trying to install scikit-learn, it requires manual pip installation of scipy.

I would always be worried with installing numpy/scipy via pip that I wouldn't be linking to BLAS/LAPACK correctly.

Re: Python, Machine Learning, and Language Wars (2015)

#37
post #34

Earlier quoted context omitted.

Knowing other languages is great, but there is very real overhead in learning them. Python is mature enough that you have mature libraries available for pretty much everything.

believe it or not, there are some people who know R and face overhead to learn Python. and they love ggplot2. and frankly, Python has no libraries for interactive visualization in your browser because only JavaScript runs there. etc.

http://bokeh.pydata.org/en/latest/

"Bokeh is a Python interactive visualization library that targets modern web browsers for presentation."

(Of course, it works by generating JavaScript)

Re: Python, Machine Learning, and Language Wars (2015)

#38
post #37
post #34

Earlier quoted context omitted.

believe it or not, there are some people who know R and face overhead to learn Python. and they love ggplot2. and frankly, Python has no libraries for interactive visualization in your browser because only JavaScript runs there. etc.

http://bokeh.pydata.org/en/latest/ "Bokeh is a Python interactive visualization library that targets modern web browsers for presentation." (Of course, it works by generating JavaScript)

right, and in order to really customize what bokeh does you need to write JS in strings in your python code, so this just proves my point.

http://bokeh.pydata.org/en/latest/docs/user_guide/interactio... see the CustomJS function.

Re: Python, Machine Learning, and Language Wars (2015)

#39
post #12

Earlier quoted context omitted.

I did that earlier today: pip install jupyter pip install numpy pip install scipy pip install scikit-learn pip install matplotlib The only problem I had was with OpenCV, which requires manual make installation if you want the contrib package. The other problem was when trying to install scikit-learn, it requires manual pip installation of scipy.

I would always be worried with installing numpy/scipy via pip that I wouldn't be linking to BLAS/LAPACK correctly.

What do you mean? I have always installed via pip with zero errors on all three platforms.

Re: Python, Machine Learning, and Language Wars (2015)

#40
post #34

Earlier quoted context omitted.

Knowing other languages is great, but there is very real overhead in learning them. Python is mature enough that you have mature libraries available for pretty much everything.

believe it or not, there are some people who know R and face overhead to learn Python. and they love ggplot2. and frankly, Python has no libraries for interactive visualization in your browser because only JavaScript runs there. etc.

Python has no libraries for interactive visualization in your browser because only JavaScript runs there

Isn't that like saying that C has no visualization libraries on Intel processors because only assembly runs there?

Post reply on HN