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?
You should check again transpose() function.

