summaryrefslogtreecommitdiff
path: root/abml
diff options
context:
space:
mode:
Diffstat (limited to 'abml')
-rw-r--r--abml/rules_prolog.py2
1 files changed, 1 insertions, 1 deletions
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"))