Np.dot() error,why isn't dot function working?

To perform dot product, you should have total no.of cols in array1 and total no. of rows of array2 equal. For example, your matrix dimension/shape should be (2,3) and (3,2) to perform dot product. I hope you are clear now.

4 Likes