Open oleg-kachan opened 3 years ago
Isomap is based on the computation of pairwise shortest paths on a graph. The graph is currently computed using a k-nearest neighbors method, but I don't see a reason not to accept radius-based nearest neighbors graphs. We could add a radius parameter, switching between k-neighbors and radius-based neighbors when radius=None
or n_neighbors=None
.
take
Describe the workflow you want to enable
Now Isomap assumes only k-nearest neighbors neighborhoods, even if supplied with precomputed neighborhood graph, such as radius_neighbors_graph which by definition have an arbitrary number of neighbors for each point (those which are within provided eps-radius).
When supplied with precomputed matrix of eps-radius nearest neighbors Isomap gives error:
Describe your proposed solution
Make Isomap work with supplied precomputed neighborhood graphs, with an arbitrary number of nearest neighbors.