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 (k_means.cluster_centers_
) and sum up the distance for each point.
Just wondering if there is a faster way? (In terms of programmer time) Something like a direct function call or so.