I have made changes in error function as error which was described in implementation video giving runtime error of divide by zero encountered with log2
Logistic Regression wrong output
in cell [27]
x = np.linspace(-4,8,10)
y = -(w[0]*x+b)/w[1]
plt.plot(x,y,color=‘k’)
plt.legend()
plt.show()
you are trying to plot y but its w[0],b,w[1] are not defined yet and there are many other errors also
Just download the notebook from the CB repo as it is and try running it
In cell 38 i have defined w and b.
And what are the other errors.
As you said i tried sir’s code and its working fine & i compared it with my code still not getting what is wrong with my code.
https://drive.google.com/open?id=1wn_LEoIiO1aTKk9RxYGIcMgAxH1nRMtT
try this notebook
in get_gradient function your grad_w += update was wrong