algorithms/k-means/algorithms.py
def stop_condition(this):
        """
        Stop the algorithm when no points changed of cluster.
        Compare the list of center instead of the clusters: faster.
        :return: boolean
        """
        if this.centers_former != this.centers:
            this.centers_former = this.centers
            return True
        else:
            return False

        Stop the algorithm when no points changed of cluster.
        Compare the list of center instead of the clusters: faster.
        :return: boolean
        
Stop the algorithm when no points changed of cluster.
Compare the list of center instead of the clusters: faster.
Stop the algorithm when no points changed of cluster . Compare the list of center instead of the clusters : faster .
def stop_condition(this):
        if this.centers_former != this.centers:
            this.centers_former = this.centers
            return True
        else:
            return False
def stop_condition ( this ) : if this . centers_former != this . centers : this . centers_former = this . centers return True else : return False
Stop the algorithm when no points changed of cluster.
Stop the algorithm when no points changed of cluster .
"""
        Stop the algorithm when no points changed of cluster.
        Compare the list of center instead of the clusters: faster.
        :return: boolean
        """
None
this