def test_not_all_classifiers_agree(): # 10 classifiers that return 1, and one that returns 2 predictions = np.ones((10, 11)) predictions[:, -1] = 2 assert not np.all(BaseDS._all_classifier_agree(predictions))
def test_all_classifiers_agree(): # 10 classifiers that return 1 predictions = np.ones((1, 10)) assert np.all(BaseDS._all_classifier_agree(predictions))