-
Notifications
You must be signed in to change notification settings - Fork 24
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
Subtracting mean embeddings #2
Comments
I am gettings this error: |
If you go back to the original paper that proposed the "Post-Processing Algorithm" (All-but-the-Top: Simple and Effective Postprocessing for Word Representations), the authors outline computing the mean to be the following: So i imagine the resulting mean should be a scaler computed from the entire matrix. |
Are you sure this line is correct?
X_train = X_train - np.mean(X_train)
np.mean(X_train)
gives a single value. Shouldn't it benp.mean(X_train, 0)
???The text was updated successfully, but these errors were encountered: