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

why normalize with sqrt of inverse of feature numbers? #22

Open
hanfu opened this issue Jan 17, 2020 · 0 comments
Open

why normalize with sqrt of inverse of feature numbers? #22

hanfu opened this issue Jan 17, 2020 · 0 comments

Comments

@hanfu
Copy link

hanfu commented Jan 17, 2020

initiated embeddings are normalized to (0, stdv). why take sqrt of inverse of feature numbers as std in

stdv = math.sqrt(1.0 /len(self.feature_sizes))
?

@hanfu hanfu changed the title why normalize with sqrt of feature numbers? why normalize with sqrt of inverse of feature numbers? Jan 17, 2020
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