3 ms·
Always wondered why this was the case : python is painfully slow and machine learning benefits greatly from speed.
by DontchaKnowit 4y ago
Always wondered why this was the case : python is painfully slow and machine learning benefits greatly from speed.
- pizza 4y agoThe Python ecosystem imo tries to get you from 0 to 1 a bit faster than the more performant alternatives with large userbases I’m really thinking of the C/C++ ecosystem here - os portability, compiler differences, cmake, xeus-cling vs ipython, etc. Interestingly it seems nowadays the trend is to siphon the good parts of the faster languages into Python (xla/numba/tvm) for cheap, rather than making it easier to get the good parts of Python into the faster languages (although certainly eg pybind11 is nice in that regard).
- rsfern 4y agoIt’s nice and flexible to work with, and for large models all the heavy lifting is calling out to CUDA and C++. often the overhead of the python interpreter is completely negligible