来源:https://stackoverflow.com/questions/35518403/how-to-use-a-user-defined-metric-for-nearest-neighbors-in-scikit-learn 标签 scikit-learn distance metrics nearest-neighbor