Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derivative of regularization #5

Open
timueh opened this issue Aug 8, 2019 · 0 comments
Open

Derivative of regularization #5

timueh opened this issue Aug 8, 2019 · 0 comments

Comments

@timueh
Copy link

timueh commented Aug 8, 2019

Thanks for the great tutorial!

One thing: why is there a square appearing for the regularization for w2 in the derivative? Shouldn't that just be the sum of w2?

dL_dw2 = dz2_dw2.T.dot(dL_dh2*dh2_dz2) + reg_coeff*np.square(w2).sum()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant