Beispiel #1
0
 def test_specific_user(self):
     link = ClusterLinkage(self.user_ink_data, target_user_id='user_1')
     clustered_data = link.clustered_data()
     cdtw = ClassifierDTW()
     cdtw.train(clustered_data)
     accuracy,_,_ = cdtw.test(self.label_ink_pairs)
     self.assertGreater(accuracy, 91.0)
Beispiel #2
0
 def test_simple(self):
     link = ClusterLinkage(self.user_ink_data)
     clustered_data = link.clustered_data()
     cdtw = ClassifierDTW()
     cdtw.train(clustered_data)
     accuracy,_,_ = cdtw.test(self.label_ink_pairs)
     self.assertGreater(accuracy, 92.0)