summaryrefslogtreecommitdiff
path: root/abml
diff options
context:
space:
mode:
authorMartin Možina <martin.mozina@fri.uni-lj.si>2017-01-31 13:42:25 +0100
committerMartin Možina <martin.mozina@fri.uni-lj.si>2017-01-31 13:42:25 +0100
commit171c152885f367979c97f1349917f6d8dfd34fc6 (patch)
tree2ce9c104ec8933a5c8d5e7892121e2d35a0af682 /abml
parent4ef4045a05b0d6e86655f032ced6053141fbc75a (diff)
Fixed a bug with missing arguments.
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"))