Akanksha Nagar
Sep 8, 2018 · 1 min read

Nice tutorial :) I have a doubt —

you used theta = np.zeros([1,3])

and I used theta = np.zeros([3,1])

I have not used transpose while calculating the hypothesis.

So I have used np.dot(X, theta)

By doing this my function decreases for some 00 iterations, but then increases and reaches a plateau. I could not find the reason.

Except theta shape everything is same as your code. :(

    Akanksha Nagar

    Written by