2015. 6. 2. 16:06
자주 사용하게 되는 Numpy 테크닉들
1. 두 Numpy Array 비교
(A == B).all()
2. 똑같은 숫자로 Column vector 만들기
a = np.empty(5) # create empty array with size 5
a.fill(2.0) # fill it with 2.0
a.shape = (len(a),1) #reshape as column vector