Skip to content

Instantly share code, notes, and snippets.

@briverse17
Created December 23, 2019 16:22
Show Gist options
  • Save briverse17/b2e2d7fefc3ab05da9a22deab200c661 to your computer and use it in GitHub Desktop.
Save briverse17/b2e2d7fefc3ab05da9a22deab200c661 to your computer and use it in GitHub Desktop.
def isConverged(self, new_medoids):
return set([tuple(x) for x in self.medoids]) == set([tuple(x) for x in new_medoids])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment