-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
FEA Implement classical MDS #31322
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
base: main
Are you sure you want to change the base?
FEA Implement classical MDS #31322
Conversation
Pinging @antoinebaker for a review :-) I have been doing some updates to this PR but am now finished with it. |
Thanks for the PR @dkobak ! Could you maybe use this PR to implement ClassicalMDS only, and do the enhancements of MDS in a separate / follow up PR ? It will ease the reviewing / merging process I think. |
All right. I took all changes to the |
Fixes #15272. Supersedes #22330.
This PR implements classical MDS, also known as principal coordinates analysis (PCoA) or Torgerson's scaling, see https://en.wikipedia.org/wiki/Multidimensional_scaling#Classical_multidimensional_scaling. As discussed in #22330, it is implemented as a new class
ClassicalMDS
.Simple demonstration:
Classical MDS is also set as default initialization for metric/non-metric MDS in theMDS()
class.For consistency, this PR also adds support for non-Euclidean metrics to theMDS
class.