def test_entropy(self): decision_tree = DecisionTree() labels = np.array([1, 1]) self.assertAlmostEqual(decision_tree._entropy(labels), 0)