diff --git a/adaa.analytics.rules/build.gradle b/adaa.analytics.rules/build.gradle index b945f94..7600cb5 100644 --- a/adaa.analytics.rules/build.gradle +++ b/adaa.analytics.rules/build.gradle @@ -27,7 +27,7 @@ codeQuality { } sourceCompatibility = 1.8 -version = '1.7.13' +version = '1.7.14' jar { diff --git a/adaa.analytics.rules/src/main/java/adaa/analytics/rules/logic/induction/AbstractFinder.java b/adaa.analytics.rules/src/main/java/adaa/analytics/rules/logic/induction/AbstractFinder.java index 9ac8876..cac0643 100644 --- a/adaa.analytics.rules/src/main/java/adaa/analytics/rules/logic/induction/AbstractFinder.java +++ b/adaa.analytics.rules/src/main/java/adaa/analytics/rules/logic/induction/AbstractFinder.java @@ -380,8 +380,9 @@ protected Set names2attributes(Set names, ExampleSet dataset) int toGenerateRulesCount = params.getMaxRuleCount()- ruleOrderNum; double fractionCurrentGeneration = 1.0 / (double) toGenerateRulesCount; return fractionCurrentGeneration * sizeToCover; - }else - { + } else if (uncoveredSize < params.getAbsoluteMinimumCovered(size)) { + return uncoveredSize; + } else { return params.getAbsoluteMinimumCovered(size); } }