def test_predict_unfitted(self): rules = TrainableRules( base_model_name="sklearn.tree.DecisionTreeClassifier", prune_branches_algorithms=[], prune_attributes=False, confidence_threshold=0) with self.assertRaises(NotFittedError): rules.predict(self.test_x)
def test_predict_unfitted(self): rules = TrainableRules("sklearn.tree.DecisionTreeClassifier", prune_branches_algorithms=[], prune_attributes=False) with self.assertRaises(NotFittedError): rules.predict(self.test_x)