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 divide the correlation by sqrt(D)? #70

Open
steven9046 opened this issue Dec 1, 2022 · 1 comment
Open

Why divide the correlation by sqrt(D)? #70

steven9046 opened this issue Dec 1, 2022 · 1 comment

Comments

@steven9046
Copy link

return corr / torch.sqrt(torch.tensor(D).float())

Hi, what does this line mean? In the paper it says that the correlation is dot product between feature vectors. But it is divided by this sqrt. Any meaning? Can replace this sqrt by something else?

@lahavlipson
Copy link
Collaborator

This reduces the variance in the correlation dot products. But it is not necessary and if you remove it and re-train the model, the performance should be similar.

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