Skip to content

Commit

Permalink
Remove debug code.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed Apr 5, 2012
1 parent 57d869d commit 9473a5d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions examples/undocumented/python_modular/evaluation_clustering.py
Expand Up @@ -63,14 +63,6 @@ def assign_labels(data, centroids):
AccuracyEval = ClusteringAccuracy()
AccuracyEval.best_map(gnd_hat, gnd)

with open('/tmp/foo.txt', 'w') as ous:
for i in range(gnd_hat.get_num_labels()):
ous.write('%d ' % gnd_hat.get_int_label(i))
ous.write('\n')
for i in range(gnd.get_num_labels()):
ous.write('%d ' % gnd.get_int_label(i))
ous.write('\n')

accuracy = AccuracyEval.evaluate(gnd_hat, gnd)
print('Clustering accuracy = %.4f' % accuracy)

Expand Down

0 comments on commit 9473a5d

Please sign in to comment.