title: Distortion function from K Means of Scikit-Learn
body: <p>To get distortion function (sum of distance for each point to its center) when doing K means clustering by Scikit-Learn, one simple way is just to get the centers (<code>k_means.cluster_centers_</code>) and sum up the distance for each point. </p>
  
  <p>Just wondering if there is a faster way? (In terms of programmer time) Something like a direct function call or so.</p>