instead of gradient descent I have used gradient Ascent
and avoided the loops wherever it was possible.
kindly look at my solution and tell where im going wrong.
My code for this challenge is working fine without any errors but the accuracy is coming 5 %
hey @muditarya31 ,
you just need to make a very small change.
In gradient function , just change ( y_-Y )
to (Y - y_)
. Your code will work fine.
1 Like