finish training kmeans