넘파이 좋은 팁이 많음!
2019. 5. 25. 22:24ㆍ분석 Python/Numpy Tip
728x90
http://arogozhnikov.github.io/2015/09/29/NumpyTipsAndTricks1.html
Data manipulation with numpy: tips and tricks, part 1
also, since algebra is you friend, you can do it times faster: $$||x_i - x_j||^2 = ||x_i||^2 + ||x_j||^2 - 2 (x_i, x_j) $$ so dot products is the only thing you need.
arogozhnikov.github.io
728x90
'분석 Python > Numpy Tip' 카테고리의 다른 글
Incredibly Fast Random Sampling in Python - 리뷰 (0) | 2019.06.14 |
---|---|
numpy.unique, numpy.searchsorted (0) | 2019.05.26 |
Broadcasting, numpy.newaxis (0) | 2019.05.26 |
numpy argsort (0) | 2019.05.26 |
Numpy (0) | 2017.12.25 |