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

Ensure PCA initialization has small variance #11

Merged
merged 3 commits into from Sep 20, 2018
Merged

Conversation

pavlin-policar
Copy link
Owner

  • As per Normalize PCA initialization to have small variance #10, it is vital for tSNE optimization that the initialization has small variance. Without this scaling, PCA initialization can potentially lead to really bad results.

  • Remove pca option when embedding new points into an existing embedding. This makes no sense because likely the points in the original space would have moved significantly and adding new points would be meaningless.

PCA initialization should be standardized to have low variance since
this is important for convergence
@pavlin-policar pavlin-policar merged commit ede566f into master Sep 20, 2018
@pavlin-policar pavlin-policar deleted the pca-init-scale branch September 20, 2018 08:41
@dkobak
Copy link
Contributor

dkobak commented Sep 20, 2018

Did you check if it makes a difference?

@pavlin-policar
Copy link
Owner Author

I did - it makes a huge difference. Using non-scaled PCA initialization the results were very bizzare-looking, but scaling it down makes it nicely behaved. I also compared it against random initialization and it does seem like PCA does better. Random initialization seems like it would need more iterations to reach the same cluster separation, but this may be specific to the 5 tests I ran. Would definitely need to run more tests to verify this.

I will be preparing a couple of notebooks showing usage and I'll probably make one for this specifically. I don't think this is well known. Thanks for pointing it out!

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