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

Update cosine_sim implementation #43

Merged
merged 1 commit into from Jul 26, 2022

Conversation

tmabraham
Copy link
Contributor

Had an absolute value so the cosine similarity would always be positive, removed that...

Also, don't know why normalize=False is the default, I think normalize=True is a better default. If you are not normalized, you need it to be, and if it is already normalized to a unit vector, it shouldn't do anything, right? so normalize=True sounds like a better default to me...

@LouisCastricato LouisCastricato merged commit 7931d2f into EleutherAI:main Jul 26, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants