def test_03_prediction_02(self): """Verify that the predictions of the classifier are as expected.""" classifier = PerceptronClassifier({'highly': 1, 'boring': -2}) for instance in self.small_dataset_pred_test_2.instance_list: prediction = classifier.prediction(instance.feature_counts) self.assertEqual(prediction, instance.label)