Dot product
Calculate dot product
import numpy as np
X = np.array([[1,2],[3,4],[5,6],[7,8],[9,10]])
Y = np.array([1,2,3,4,5])
np.dot(X.T,Y)
array([ 95, 110])
X.T.dot(Y)
array([ 95, 110])
import numpy as np
X = np.array([[1,2],[3,4],[5,6],[7,8],[9,10]])
Y = np.array([1,2,3,4,5])
np.dot(X.T,Y)
array([ 95, 110])
X.T.dot(Y)
array([ 95, 110])