scikit-learn/scikit-learn

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

Open

#9,868 建立於 2017年10月3日

在 GitHub 查看
 (8 留言) (0 反應) (0 負責人)Python (66,084 star) (27,020 fork)batch import
Enhancementhelp wantedmodule:manifold

描述

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

貢獻者指南