Is it possible to specify your own distance function using scikit-learn K-Means Clustering?
Unfortunately no: scikit-learn current implementation of k-means only uses Euclidean distances.
It is not trivial to extend k-means to other distances and denis' answer above is not the correct way to implement k-means for other metrics.
Is it possible to specify your own distance function using scikit-learn K-Means Clustering?