scikit-learn/scikit-learn
在 GitHub 查看scikit-learn/sklearn/manifold/locally_linear.py could have a parameter for metric type
Open
#9,868 建立於 2017年10月3日
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.