분석 Python/Numpy Tip
넘파이 좋은 팁이 많음!
데이터분석뉴비
2019. 5. 25. 22:24
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