err += y_true[i] * np.log2(hx) + (1-y_true[i])*np.log2(1-hx)
this line is giving division by zero warning
Jupyter Notebook file drive link:
err += y_true[i] * np.log2(hx) + (1-y_true[i])*np.log2(1-hx)
this line is giving division by zero warning
Jupyter Notebook file drive link: