You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
scikit-learn/sklearn/manifold/isomap.py could have a metric parameter for the nearest neighbors algorithm #9994
This is similar to issue #9868. There might be more to find, but the gist of the issue is that the manifold learning methods that make use of nearest neigbhors algorithm should also have a parameter for metric type. Nearest Neighbors accepts these:
Well in solving #9868 we confirmed that it should not allow different
metrics, and will be raising an error if a NearestNeighbors instance is
provided that does not use euclidean (#9888). Are you certain other metrics
are applicable to IsoMap? After saying the wrong thing regarding LLE, I
want to be a bit guarded in any statements, but it does seem that the
training data is only used to calculate nearest neighbors and distances
here.
I know it's been a while since this was opened, but I also need what @aarondbaron is describing. @jnothman asks whether other metrics are applicable to Isomap, and they do.
The original article, "A Global Geometric Framework for Nonlinear Dimensionality Reduction", describes how the Isomap algorithm takes as input distances between all pairs of points "measured in either Euclidean space or in some domain-specific metric". The nearest neighbors graph is then constructed according to this distance matrix.
Meaning as far as the input to the algorithm goes, it should be possible to input the matrix of dissimilarities, and build the shortest paths distance matrix according to this matrix. Then, classical MDS can be applied to construct the embedding in Euclidean space (i.e. minimize the Euclidean difference between distances of lower dimensionality points and higher dimensionality points).
Activity
jnothman commentedon Oct 24, 2017
milongo commentedon Nov 5, 2018
I know it's been a while since this was opened, but I also need what @aarondbaron is describing. @jnothman asks whether other metrics are applicable to Isomap, and they do.
The original article, "A Global Geometric Framework for Nonlinear Dimensionality Reduction", describes how the Isomap algorithm takes as input distances between all pairs of points "measured in either Euclidean space or in some domain-specific metric". The nearest neighbors graph is then constructed according to this distance matrix.
Meaning as far as the input to the algorithm goes, it should be possible to input the matrix of dissimilarities, and build the shortest paths distance matrix according to this matrix. Then, classical MDS can be applied to construct the embedding in Euclidean space (i.e. minimize the Euclidean difference between distances of lower dimensionality points and higher dimensionality points).
jnothman commentedon Nov 6, 2018
Submit a pull request, @milongo?
TomDLT commentedon Sep 18, 2019
Fixed in #10482