In the following code:
for i in range(100):
l,w,b = grad_descent(x,y_true,w,b,learning_rate=0.1)
loss.append(l)
acc.append(get_acc(x,y_true,w,b))
I am getting the following error:
C:\Users\Hemant Kumar\Anaconda3\lib\site-packages\ipykernel_launcher.py:6: RuntimeWarning: divide by zero encountered in log2
C:\Users\Hemant Kumar\Anaconda3\lib\site-packages\ipykernel_launcher.py:6: RuntimeWarning: invalid value encountered in multiply
Please tell me what can be wrong in my code?
