def METHOD_NAME(self):
    """
    Performs self.n_iter EM steps.
    """
    self.initialize_centroids()
    for i in range(self.n_iter):
        try:
            self.step(i)
        except EmptyClusterResolveError:
            break