I have two numpy arrays of the same dimension . When I tried to use dot product on them, I am getting "shapes not aligned" error.
import numpy as np
A = np.array([[2,4,6]])
Y = np.array([[1,0,1]])
np.dot(Y,A)
ValueError: shapes (1,3) and (1,3) not aligned: 3 (dim 1) != 1 (dim 0)
Can someone let me know why?
Thanks