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

Doubt in code #1

Open
halloTheCoder opened this issue Nov 8, 2019 · 1 comment
Open

Doubt in code #1

halloTheCoder opened this issue Nov 8, 2019 · 1 comment

Comments

@halloTheCoder
Copy link

Can you explain in weights, what's the purpose of this code snippet
np.sqrt(1 / self.size[i-1])

Line-112 in nn.py

@ahmedbesbes
Copy link
Owner

it's an He initialization: https://towardsdatascience.com/weight-initialization-techniques-in-neural-networks-26c649eb3b78

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

2 participants