From 171c152885f367979c97f1349917f6d8dfd34fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mo=C5=BEina?= Date: Tue, 31 Jan 2017 13:42:25 +0100 Subject: Fixed a bug with missing arguments. --- abml/rules_prolog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'abml') diff --git a/abml/rules_prolog.py b/abml/rules_prolog.py index c5c4134..9edd674 100644 --- a/abml/rules_prolog.py +++ b/abml/rules_prolog.py @@ -165,7 +165,7 @@ def create_learner(name, evds=True): rule_learner = rules.ABRuleLearner(width=50, parent_alpha=0.05) rule_learner.rule_finder.general_validator = TrueCondValidator(rule_learner.rule_finder.general_validator.max_rule_length, rule_learner.rule_finder.general_validator.min_covered_examples) - rule_learner.rule_validator = PureAccuracyValidator(0) + rule_learner.rule_validator = PureAccuracyValidator(0, 0.8) rule_learner.classifier = NegativeFirstClassifier if evds: rule_learner.evds = pickle.load(open("data/{}/evds.pickle".format(name), "rb")) -- cgit v1.2.1