title: scikit-learn kmeans custom distance
body: <p>I looking to use the kmeans algorithm to cluster some data, but I would like to use a custom distance function. Is there any way I can change the distance function that is used by scikit-learn?</p>
  
  <p>I would also settle for a different framework / module that would allow exchanging the distance function and can calculate the kmeans in parallel (I would like to speed up the calculation, which is a nice feature from scikit-learn)</p>
  
  <p>Any suggestions?</p>