Regarding Implementation of Neural Network

well i was implementing neural network algorithm by the help of videos and i notice that my accuracy is not up to the mark .So can u take a look at my code as sometimes when i change the number of neurons in hidden layer it perform worst (worst than Logistic regression (sometimes))
.As i have written vectorized implementation of delta2 as delta2=np.dot(delta3,w3.T)((a2)(1-a2)) instead of delta2 =np.dot(delta3,w3.T)(1-np.square(a2)) that is used in videos by prateek bhaiya.How a2(1-a2) is equivalent to (1-np.square(a2)).

hey @amankharb ,
there is no such problem in your model code. But you need to understand overfitting and underfitting in neural networks. i guess your model is getting over fitted at around epoch 685.
So just first search about them and understand them how to resolve them. If still there is something you can’t understand in them , i will surely help you out.

i also want to ask what difference will it create when i use delta2=np.dot(delta3,w3.T)((a2)(1-a2)) instead of delta2 =np.dot(delta3,w3.T)*(1-np.square(a2)). ??

Its just the way you update your weight values and nothing else. You can also create any other formulae to perform updation of those values.
There is no such particular difference between them , other then as stated above.

I hope this would have helped you.
Thank You.

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.