scikit-learn/scikit-learn — pull request #742 by davidmarek (2012-03-31 12:04:24+00:00)
Title: minkowski p-distance in sklearn.neighbors

Issue #351

I have added new value p to classes in sklearn.neighbors to support arbitrary Minkowski metrics for searches. For p=1 and p=2 sklearn implementations of manhattan and euclidean distances are used. For other values the minkowski distance from scipy is used.

I have also modified tests to check if the distances are same for all algorithms.