Skip to content

Instantly share code, notes, and snippets.

@abutcher
Created December 29, 2010 22:49
Show Gist options
  • Select an option

  • Save abutcher/759171 to your computer and use it in GitHub Desktop.

Select an option

Save abutcher/759171 to your computer and use it in GitHub Desktop.
if type == "VARIANCE":
clusters_copy = sorted(clusters_copy, key=lambda clus: entropy(clus.datums()), reverse=True)
elif type == "SCORE":
clusters_copy = sorted(clusters_copy, key=lambda clus: clus.stats.HarmonicMean("TRUE"))
else:
print "You're a towel!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment