Skip to content

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

Open

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

Activity

  1. jnothman commented on Oct 3, 2017

    @jnothman
    Member
  2. added
    Easy
    on Oct 3, 2017
  3. achaldave commented on Oct 4, 2017

    @achaldave

    Hi, I'd like to take this up as my first contribution here.

  4. CoderPat commented on Oct 7, 2017

    @CoderPat
    Contributor

    I wouldn't mind to work on this one as well, if @achaldave isn't already

  5. YashTD commented on Oct 8, 2017

    @YashTD

    @jnothman isn't it as straightforward as passing two additional arguments to NearestNeightbours? If so, I'd be happy to make this quick fix.

  6. jnothman commented on Oct 8, 2017

    @jnothman
    Member
  7. kamathhrishi commented on Oct 13, 2017

    @kamathhrishi

    I would like to make my first contribution on this.

  8. lesteve commented on Oct 13, 2017

    @lesteve
    Member

    @kamathhrishi there is already a PR on this one as you can see just above your post. Feel free to find another issue to work on, we have plenty of them ;-).

  9. kamathhrishi commented on Oct 13, 2017

    @kamathhrishi
  10. removed
    Easy
    on Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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