Array function internal error


I dont know why i am getting this error of the np.dot function . Anyone please help to fix it. I tried for more than 2 hrs

Hi,
I think you should check again the function gradientDescent. It should be the np.dot between x and theta, and then just follow the Instructions: Implement gradient descent function to write your code

In addition, there are dot products of the cost functions and weights. Maybe you have an error with transposing the matrices?


i have again changed the code but same problem persists.
Actually all the previous tests are passed and it is giving correct results there , but here it is not working
Moreover the exact same code gave all correct result 2 days ago, but now this error

You should check again transpose() function.