Skip to content

scikit-learn/sklearn/manifold/locally_linear.py could have a parameter for metric type #9868

@aarondbaron

Description

@aarondbaron

Description

Local Linear Embedding uses distance metrics in the calculation of nearest neigbhors. it uses the NearestNeighbors class to do that. There doesnt seem to be a way to pass in the type of distance metric used. It uses a default of euclidean (or minkowski 2). It would be nice to pass in as a parameter different metrics to try, such as jaccard for categorical or whatever one would like.

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