There are two errors in code

There is some minor error but i am unable to identify, code is from implementing neural network, the link of code is :
https://colab.research.google.com/drive/1j8hJ6PpPmBau-aSHjCASNexDTMpu-PEg?usp=sharing

Hey @lgoyal50_be19, please replace the below line from the backword function in your code

delta_1 = (1-np.square(a21))*np.dot(delta_2,W2.T)

by the following code

delta_1 = (1-np.square(a1))*np.dot(delta_2,W2.T)

Then run your notebook from the starting. It should work as expected !
I hope this helps ! :+1:
Happy Learning ! :smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.