Skip to content

scikit-learn/sklearn/manifold/isomap.py could have a metric parameter for the nearest neighbors algorithm #9994

@aarondbaron

Description

@aarondbaron

Description

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:

Valid values for metric are:

from scikit-learn: [‘cityblock’, ‘cosine’, ‘euclidean’, ‘l1’, ‘l2’, ‘manhattan’]
from scipy.spatial.distance: [‘braycurtis’, ‘canberra’, ‘chebyshev’, ‘correlation’, ‘dice’, ‘hamming’, ‘jaccard’, ‘kulsinski’, ‘mahalanobis’, ‘matching’, ‘minkowski’, ‘rogerstanimoto’, ‘russellrao’, ‘seuclidean’, ‘sokalmichener’, ‘sokalsneath’, ‘sqeuclidean’, ‘yule’]

According to the documentation

Steps/Code to Reproduce

Expected Results

Actual Results

Versions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions