Re:End-to-end implementation of a machine learning pipeline ...
by tonyarkles on Thursday October 25, 2018 @11:22AM
(#18301583)
My guess is based on Python 2, where range(n) would return a fully inflated list of 0..(n-1). If len(x) is large, you could be allocating giant temporary lists just to iterate through them once. Using xrange() was the Python 2 solution (it would return a generator instead), but, if I recall correctly, Python 3 fixed this s.t. range() returns a generator.
[ Parent
| on HN ]
There are no comments on this comment yet.