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 9, 2012
1 parent f87cd67 commit caba5ca
Showing 1 changed file with 0 additions and 7 deletions.
Expand Up @@ -17,13 +17,6 @@ def classifier_gaussiannaivebayes_modular(fm_train_real=traindat,fm_test_real=te
gnb=GaussianNaiveBayes(feats_train, labels)
gnb_train = gnb.train()
output=gnb.apply(feats_test).get_labels()
import numpy as np
output_prev = np.loadtxt('/tmp/output.txt')
if np.all(output == output_prev):
print "The result the same as before!"
else:
print "OOps, implementation chaned!"

return gnb, gnb_train, output

if __name__=='__main__':
Expand Down

0 comments on commit caba5ca

Please sign in to comment.