Sklearn K means Clustering convergence
You have access to the n_iter_ field of the KMeans class, it gets set after you call fit (or other routines that internally call fit.
Not your fault for overlooking that, it's not part of the documentation, I just found it by checking the source code ;)
I am trying to construct clusters out of a set of data using the Kmeans algorithm from SkLearn. I want to know how one can determine whether the algorithm actually converged to a solution for one's data. 
We feed in the tol parameter to define the tolerance for convergence but there is also a max_iter parameter that defines the number of iterations the algorithm will do for each run. I get that the algorithm may not always converge within the max_iter times of iterations. So is there any attribute or a function that I can access to know if the algorithm converged before the max_iter iterations ?