File tree 2 files changed +2
-10
lines changed
src/main/java/adaa/analytics/rules/logic/induction
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ codeQuality {
27
27
}
28
28
29
29
sourceCompatibility = 1.8
30
- version = ' 1.6.1 '
30
+ version = ' 1.6.2 '
31
31
32
32
33
33
jar {
Original file line number Diff line number Diff line change @@ -460,10 +460,6 @@ protected ElementaryCondition induceCondition(
460
460
Set <Attribute > allowedAttributes ,
461
461
Object ... extraParams ) {
462
462
463
- if (rule .getPremise ().getSubconditions ().size () == 3 ) {
464
- // return null;
465
- }
466
-
467
463
if (allowedAttributes .size () == 0 ) {
468
464
return null ;
469
465
}
@@ -483,10 +479,6 @@ protected ElementaryCondition induceCondition(
483
479
// iterate over all allowed decision attributes
484
480
for (Attribute attr : allowedAttributes ) {
485
481
486
- if ((rule .getPremise ().getSubconditions ().size () == 2 ) && (!attr .getName ().equals ("input16" ))) {
487
- // continue;
488
- }
489
-
490
482
// consider attributes in parallel
491
483
Future <ConditionEvaluation > future = (Future <ConditionEvaluation >) pool .submit (() -> {
492
484
@@ -515,7 +507,7 @@ class TotalPosNeg {
515
507
// get all distinctive values of attribute
516
508
for (int id : coveredByRule ) {
517
509
DataRow dr = trainSet .getExample (id ).getDataRow ();
518
- double val = dr .get (attr );
510
+ double val = dr .get (attr ) + 0.0 ; // to eliminate -0.0
519
511
520
512
// exclude missing values from keypoints
521
513
if (Double .isNaN (val )) {
You can’t perform that action at this time.
0 commit comments