def test_state_reduction(self): beam = ClassifierBeam(beam_width=500, beam_alpha=0.1) beam.train(self.clustered_data, state_reduction=True) accuracy,_,_ = beam.test(self.label_ink_pairs) if VERBOSE: print accuracy, 90 self.assertGreater(accuracy, 90.0)
def test_simple(self): beam = ClassifierBeam(beam_width=500, beam_alpha=0.1) beam.train(self.clustered_data) accuracy,_,_ = beam.test(self.label_ink_pairs) if VERBOSE: print accuracy, 87 self.assertGreater(accuracy, 87.0)