Skip to content

Commit

Permalink
Test results updated to follow different condition ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
agudys committed Sep 6, 2024
1 parent a5a1b81 commit 3a2a3ef
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 51 deletions.
2 changes: 1 addition & 1 deletion adaa.analytics.rules/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'java'
}

version = '2.1.18'
version = '2.1.18b'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Rules
IF [gimpuls = (-inf, 1350.50)] AND [senergy = (-inf, 5750)] AND nbumps = (-inf, 1.50) THEN class = {0}
IF [gimpuls = (-inf, 1350.50)] AND [senergy = (-inf, 5750)] AND goenergy = <-73.50, inf) AND nbumps = (-inf, 2.50) THEN class = {0}
IF [gimpuls = (-inf, 1350.50)] AND [genergy = (-inf, 122140)] AND goenergy = <-73.50, inf) AND nbumps = (-inf, 5.50) THEN class = {0}
IF [gimpuls = (-inf, 1350.50)] AND [senergy = (-inf, 5750)] AND nbumps = (-inf, 2.50) AND goenergy = <-73.50, inf) THEN class = {0}
IF [gimpuls = (-inf, 1350.50)] AND [genergy = (-inf, 122140)] AND nbumps = (-inf, 5.50) AND goenergy = <-73.50, inf) THEN class = {0}
IF [gimpuls = (-inf, 2784)] AND [senergy = (-inf, 5750)] AND goenergy = <-73.50, inf) AND goimpuls = (-inf, 107.50) THEN class = {0}
IF [genergy = <18890, inf)] AND [senergy = <950, inf)] AND ghazard = {a} AND goenergy = (-inf, 12) AND maxenergy = (-inf, 6500) AND gimpuls = (-inf, 1845.50) AND goimpuls = (-inf, 10.50) AND shift = {W} AND nbumps3 = <0.50, inf) THEN class = {1}
IF [genergy = <18890, inf)] AND [senergy = <950, inf)] AND goimpuls = (-inf, 10.50) AND maxenergy = (-inf, 6500) AND shift = {W} AND goenergy = (-inf, 12) AND gimpuls = (-inf, 1845.50) AND nbumps3 = <0.50, inf) AND ghazard = {a} THEN class = {1}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@


Rules
IF [seismic = {a}] AND goenergy = <-73.50, inf) AND nbumps3 = (-inf, 0.50) THEN class = {0}
IF [seismic = {a}] AND goenergy = <-73.50, inf) AND nbumps = (-inf, 1.50) THEN class = {0}
IF [seismic = {a}] AND nbumps3 = (-inf, 0.50) AND goenergy = <-73.50, inf) THEN class = {0}
IF [seismic = {a}] AND nbumps = (-inf, 1.50) AND goenergy = <-73.50, inf) THEN class = {0}
IF [seismic = {a}] AND goenergy = <-37.50, inf) AND goimpuls = <-39, inf) THEN class = {0}
IF [ghazard = {b}] THEN class = {0}
IF [seismoacoustic = {a}] AND genergy = (-inf, 18890) THEN class = {0}
IF [seismoacoustic = {a}] AND gimpuls = (-inf, 1350.50) AND goimpuls = <-39.50, inf) THEN class = {0}
IF genergy = (-inf, 25125) AND nbumps = (-inf, 1.50) THEN class = {0}
IF goenergy = <-73.50, inf) AND gimpuls = (-inf, 1350.50) AND nbumps = (-inf, 2.50) THEN class = {0}
IF [seismic = {b}] AND ghazard = {a} AND goenergy = <-39, 94.50) AND maxenergy = (-inf, 45000) AND genergy = <25125, inf) AND goimpuls = <-15.50, inf) THEN class = {1}
IF nbumps = (-inf, 1.50) AND genergy = (-inf, 25125) THEN class = {0}
IF gimpuls = (-inf, 1350.50) AND nbumps = (-inf, 2.50) AND goenergy = <-73.50, inf) THEN class = {0}
IF [seismic = {b}] AND genergy = <25125, inf) AND goenergy = <-39, 94.50) AND goimpuls = <-15.50, inf) AND ghazard = {a} AND maxenergy = (-inf, 45000) THEN class = {1}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


Rules
IF goenergy = <-73.50, inf) AND nbumps3 = (-inf, 0.50) AND nbumps4 = (-inf, 1.50) THEN class = {0}
IF nbumps4 = (-inf, 1.50) AND nbumps3 = (-inf, 0.50) AND goenergy = <-73.50, inf) THEN class = {0}
IF goenergy = <-73.50, inf) AND nbumps = (-inf, 1.50) THEN class = {0}
IF goenergy = <-73.50, inf) AND genergy = (-inf, 117615) AND nbumps2 = (-inf, 1.50) THEN class = {0}
IF genergy = (-inf, 117615) AND goenergy = <-73.50, inf) AND nbumps2 = (-inf, 1.50) THEN class = {0}
IF nbumps = (-inf, 5.50) THEN class = {0}
IF goenergy = (-inf, 9) AND maxenergy = (-inf, 6500) AND genergy = <18890, 314675) AND shift = {W} AND nbumps3 = <0.50, inf) THEN class = {1}
IF genergy = <18890, 314675) AND goenergy = (-inf, 9) AND nbumps3 = <0.50, inf) AND shift = {W} AND maxenergy = (-inf, 6500) THEN class = {1}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

Rules
IF gimpuls = (-inf, 1350.50) THEN class = {0}
IF goenergy = <-32.50, inf) AND gimpuls = (-inf, 2784) AND goimpuls = <-39, 111) THEN class = {0}
IF ghazard = {a} AND goenergy = <-38.50, 9) AND gimpuls = <263, 1878) AND genergy = <24830, 314675) AND goimpuls = (-inf, 17.50) AND shift = {W} THEN class = {1}
IF gimpuls = (-inf, 2784) AND goimpuls = <-39, 111) AND goenergy = <-32.50, inf) THEN class = {0}
IF goenergy = <-38.50, 9) AND genergy = <24830, 314675) AND goimpuls = (-inf, 17.50) AND ghazard = {a} AND gimpuls = <263, 1878) AND shift = {W} THEN class = {1}
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@


Rules
IF Gender = {female} AND Age = <34.50, inf) THEN Future Customer = {no}
IF Payment Method = {cash} AND Age = <37.50, inf) THEN Future Customer = {no}
IF Age = <34.50, inf) AND Gender = {female} THEN Future Customer = {no}
IF Age = <37.50, inf) AND Payment Method = {cash} THEN Future Customer = {no}
IF Age = <72.50, inf) THEN Future Customer = {no}
IF Payment Method = {cheque} AND Age = <54.50, 71.50) THEN Future Customer = {no}
IF Payment Method = {cheque} AND Age = <41.50, 55.50) THEN Future Customer = {no}
IF Gender = {female} AND Age = <32.50, inf) THEN Future Customer = {no}
IF Age = <54.50, 71.50) AND Payment Method = {cheque} THEN Future Customer = {no}
IF Age = <41.50, 55.50) AND Payment Method = {cheque} THEN Future Customer = {no}
IF Age = <32.50, inf) AND Gender = {female} THEN Future Customer = {no}
IF Age = <31.50, 42.50) THEN Future Customer = {no}
IF Gender = {female} AND Age = <27.50, inf) THEN Future Customer = {no}
IF Gender = {female} AND Age = <24.50, inf) THEN Future Customer = {no}
IF Gender = {female} AND Age = <19.50, inf) THEN Future Customer = {no}
IF Payment Method = {credit card} AND Age = (-inf, 30.50) THEN Future Customer = {yes}
IF Gender = {male} AND Payment Method = {credit card} AND Age = (-inf, 32.50) THEN Future Customer = {yes}
IF Gender = {male} AND Age = <18.50, 21.50) THEN Future Customer = {yes}
IF Gender = {male} AND Age = <17.50, 22.50) THEN Future Customer = {yes}
IF Gender = {male} AND Age = (-inf, 25.50) THEN Future Customer = {yes}
IF Gender = {male} AND Age = <18.50, 27.50) THEN Future Customer = {yes}
IF Gender = {male} AND Age = <20.50, 30.50) THEN Future Customer = {yes}
IF Gender = {male} AND Payment Method = {credit card} AND Age = (-inf, 34.50) THEN Future Customer = {yes}
IF Gender = {male} AND Age = (-inf, 34.50) THEN Future Customer = {yes}
IF Gender = {male} AND Age = (-inf, 35.50) THEN Future Customer = {yes}
IF Gender = {male} AND Payment Method = {credit card} AND Age = (-inf, 36.50) THEN Future Customer = {yes}
IF Gender = {female} THEN Future Customer = {no}
IF Age = (-inf, 30.50) AND Payment Method = {credit card} THEN Future Customer = {yes}
IF Age = (-inf, 32.50) AND Payment Method = {credit card} AND Gender = {male} THEN Future Customer = {yes}
IF Age = <18.50, 21.50) AND Gender = {male} THEN Future Customer = {yes}
IF Age = <17.50, 22.50) AND Gender = {male} THEN Future Customer = {yes}
IF Age = (-inf, 25.50) AND Gender = {male} THEN Future Customer = {yes}
IF Age = <18.50, 27.50) AND Gender = {male} THEN Future Customer = {yes}
IF Age = <20.50, 30.50) AND Gender = {male} THEN Future Customer = {yes}
IF Age = (-inf, 34.50) AND Payment Method = {credit card} AND Gender = {male} THEN Future Customer = {yes}
IF Age = (-inf, 34.50) AND Gender = {male} THEN Future Customer = {yes}
IF Age = (-inf, 35.50) AND Gender = {male} THEN Future Customer = {yes}
IF Age = (-inf, 36.50) AND Gender = {male} AND Payment Method = {credit card} THEN Future Customer = {yes}
IF Gender = {male} AND Payment Method = {credit card} AND Age = (-inf, 72.50) THEN Future Customer = {yes}
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@


Rules
IF Gender = {female} AND Age = <34.50, inf) THEN Future Customer = {no}
IF Age = <34.50, inf) AND Gender = {female} THEN Future Customer = {no}
IF Age = <34.50, inf) THEN Future Customer = {no}
IF Gender = {female} AND Age = <32.50, inf) THEN Future Customer = {no}
IF Age = <32.50, inf) AND Gender = {female} THEN Future Customer = {no}
IF Gender = {female} AND Age = <28.50, inf) THEN Future Customer = {no}
IF Gender = {female} AND Age = <23.50, inf) THEN Future Customer = {no}
IF Gender = {female} AND Age = <17.50, inf) THEN Future Customer = {no}
IF Payment Method = {credit card} AND Age = (-inf, 32.50) THEN Future Customer = {yes}
IF Gender = {female} THEN Future Customer = {no}
IF Age = (-inf, 32.50) AND Payment Method = {credit card} THEN Future Customer = {yes}
IF Age = (-inf, 34.50) THEN Future Customer = {yes}
IF Gender = {male} AND Age = (-inf, 36.50) THEN Future Customer = {yes}
IF Age = (-inf, 36.50) AND Gender = {male} THEN Future Customer = {yes}
IF Gender = {male} AND Payment Method = {credit card} AND Age = (-inf, 72.50) THEN Future Customer = {yes}
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@

Rules
IF [PD = <0.50, inf) AND MM116 = (-inf, 1)] AND BA13 = <1068.50, 1071.50) THEN MM116_pred = {0.90}
IF [PD = <0.50, inf) AND MM116 = (-inf, 1)] AND DMM116 = <-0.05, inf) AND MM31 = <0.32, 0.36) THEN MM116_pred = {0.70}
IF [PD = <0.50, inf) AND MM116 = (-inf, 1)] AND MM31 = <0.32, 0.36) AND DMM116 = <-0.05, inf) THEN MM116_pred = {0.70}
IF [PD = <0.50, inf) AND MM116 = (-inf, 1)] AND DMM116 = <-0.05, inf) AND MM31 = <0.37, 0.50) AND BA13 = <1071, inf) THEN MM116_pred = {0.80}
IF [PD = <0.50, inf) AND MM116 = (-inf, 1)] AND AS038 = <2.25, inf) AND BA13 = (-inf, 1075) THEN MM116_pred = {0.90}
IF [PD = <0.50, inf) AND MM116 = (-inf, 1)] AND AS038 = <2.25, inf) AND MM31 = <0.28, 0.36) THEN MM116_pred = {0.60}
IF MM116 = (-inf, 0.60) AND MM31 = (-inf, 0.24) THEN MM116_pred = {0.40}
IF [PD = <0.50, inf) AND MM116 = (-inf, 1)] AND BA13 = (-inf, 1075) AND AS038 = <2.25, inf) THEN MM116_pred = {0.90}
IF [PD = <0.50, inf) AND MM116 = (-inf, 1)] AND MM31 = <0.28, 0.36) AND AS038 = <2.25, inf) THEN MM116_pred = {0.60}
IF MM31 = (-inf, 0.24) AND MM116 = (-inf, 0.60) THEN MM116_pred = {0.40}
IF MM31 = <0.24, 0.31) AND PG072 = (-inf, 1.95) AND BA13 = (-inf, 1075.50) THEN MM116_pred = {0.50}
IF MM116 = (-inf, 0.65) AND MM31 = <0.24, 0.30) AND BA13 = <1073.50, inf) THEN MM116_pred = {0.50}
IF MM116 = <0.55, 0.85) AND DMM116 = <-0.05, inf) AND MM31 = <0.26, 0.33) THEN MM116_pred = {0.60}
IF MM31 = <0.24, 0.30) AND BA13 = <1073.50, inf) AND MM116 = (-inf, 0.65) THEN MM116_pred = {0.50}
IF MM31 = <0.26, 0.33) AND MM116 = <0.55, 0.85) AND DMM116 = <-0.05, inf) THEN MM116_pred = {0.60}
IF MM31 = (-inf, 0.33) THEN MM116_pred = {0.50}
IF MM116 = (-inf, 0.75) AND MM31 = <0.24, inf) THEN MM116_pred = {0.60}
IF MM116 = <1.05, 1.25) AND AS038 = (-inf, 2.45) AND MM31 = <0.39, inf) AND BA13 = (-inf, 1076.50) THEN MM116_pred = {1.20}
IF MM116 = <1.05, 1.25) AND MM31 = <0.37, 0.57) AND PG072 = <1.75, inf) AND BA13 = <1069.50, inf) THEN MM116_pred = {1.20}
IF MM116 = <0.95, 1.25) THEN MM116_pred = {1.10}
IF MM116 = <0.95, 1.35) THEN MM116_pred = {1.10}
IF MM116 = (-inf, 0.85) AND DMM116 = (-inf, 0.05) AND AS038 = (-inf, 2.45) AND MM31 = (-inf, 0.36) AND PG072 = <1.65, inf) THEN MM116_pred = {0.50}
IF MM116 = (-inf, 0.85) AND DMM116 = (-inf, 0.05) AND MM31 = (-inf, 0.36) AND AS038 = (-inf, 2.45) AND PG072 = <1.65, inf) THEN MM116_pred = {0.50}
IF MM31 = (-inf, 0.36) THEN MM116_pred = {0.50}
IF MM116 = (-inf, 0.95) AND MM31 = <0.32, inf) THEN MM116_pred = {0.80}
IF MM31 = <0.32, inf) AND MM116 = (-inf, 0.95) THEN MM116_pred = {0.80}
IF AS038 = <2.15, inf) AND MM31 = (-inf, 0.67) AND MM116 = <1.05, inf) THEN MM116_pred = {1.20}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

Rules
IF [PD = (-inf, 0.50) AND MM116 = (1, inf)] AND AS038 = (-inf, 2.25) THEN MM116_pred = {1.20}
IF MM116 = (-inf, 0.60) AND MM31 = (-inf, 0.24) THEN MM116_pred = {0.40}
IF MM31 = (-inf, 0.24) AND MM116 = (-inf, 0.60) THEN MM116_pred = {0.40}
IF MM31 = <0.24, 0.31) AND PG072 = (-inf, 1.95) AND BA13 = (-inf, 1075.50) THEN MM116_pred = {0.50}
IF MM116 = (-inf, 0.65) AND MM31 = <0.24, 0.30) AND BA13 = <1073.50, inf) THEN MM116_pred = {0.50}
IF MM116 = <0.55, 0.85) AND DMM116 = <-0.05, inf) AND AS038 = <2.25, inf) AND MM31 = <0.26, inf) AND PG072 = (-inf, 1.95) AND BA13 = <1074.50, inf) THEN MM116_pred = {0.70}
IF PD = (-inf, 0.50) AND MM116 = <0.55, 0.85) AND DMM116 = <-0.05, inf) AND AS038 = (-inf, 2.45) AND MM31 = (-inf, 0.33) THEN MM116_pred = {0.60}
IF MM31 = <0.24, 0.30) AND BA13 = <1073.50, inf) AND MM116 = (-inf, 0.65) THEN MM116_pred = {0.50}
IF MM116 = <0.55, 0.85) AND DMM116 = <-0.05, inf) AND PG072 = (-inf, 1.95) AND AS038 = <2.25, inf) AND MM31 = <0.26, inf) AND BA13 = <1074.50, inf) THEN MM116_pred = {0.70}
IF MM31 = (-inf, 0.33) AND MM116 = <0.55, 0.85) AND AS038 = (-inf, 2.45) AND DMM116 = <-0.05, inf) AND PD = (-inf, 0.50) THEN MM116_pred = {0.60}
IF MM31 = (-inf, 0.33) THEN MM116_pred = {0.50}
IF MM116 = (-inf, 0.75) AND MM31 = <0.24, inf) THEN MM116_pred = {0.60}
IF MM116 = <1.05, 1.25) AND AS038 = (-inf, 2.45) AND MM31 = <0.39, inf) AND BA13 = (-inf, 1076.50) THEN MM116_pred = {1.20}
IF PD = (-inf, 0.50) AND MM116 = (-inf, 1.05) AND AS038 = <2.15, inf) AND PG072 = <1.75, inf) AND BA13 = <1069.50, inf) THEN MM116_pred = {0.50}
IF AS038 = <2.15, inf) AND PG072 = <1.75, inf) AND BA13 = <1069.50, inf) AND PD = (-inf, 0.50) AND MM116 = (-inf, 1.05) THEN MM116_pred = {0.50}
IF MM116 = <0.95, 1.25) THEN MM116_pred = {1.10}
IF MM116 = <0.95, 1.35) THEN MM116_pred = {1.10}
IF MM116 = (-inf, 0.95) AND MM31 = <0.30, inf) THEN MM116_pred = {0.80}
IF MM116 = <1.05, inf) AND AS038 = <2.15, inf) AND MM31 = (-inf, 0.67) THEN MM116_pred = {1.20}
IF AS038 = <2.15, inf) AND MM31 = (-inf, 0.67) AND MM116 = <1.05, inf) THEN MM116_pred = {1.20}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Rules
IF [MM116 = (-inf, 0.45)] AND [PD = (-inf, 0.50)] THEN MM116_pred = {0.40}
IF [MM116 = <0.95, inf)] AND [DMM116 = <-0.05, inf)] AND [PD = <0.50, inf)] THEN MM116_pred = {1.10}
IF [MM116 = <0.95, inf)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND MM31 = (-inf, 0.50) AND PG072 = (-inf, 1.95) AND BA13 = (-inf, 1075.50) THEN MM116_pred = {1}
IF [MM116 = <0.95, inf)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND MM31 = (-inf, 0.55) AND PG072 = (-inf, 1.95) THEN MM116_pred = {1}
IF [MM116 = <0.95, inf)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND PG072 = (-inf, 1.95) AND MM31 = (-inf, 0.50) AND BA13 = (-inf, 1075.50) THEN MM116_pred = {1}
IF [MM116 = <0.95, inf)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND PG072 = (-inf, 1.95) AND MM31 = (-inf, 0.55) THEN MM116_pred = {1}
IF [MM116 = <0.95, inf)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND MM31 = <0.38, inf) THEN MM116_pred = {1.10}
IF [MM116 = <0.95, inf)] AND [DMM116 = (-inf, 0.05)] THEN MM116_pred = {1.10}
IF [MM116 = (-inf, 0.75)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND MM31 = <0.23, 0.27) THEN MM116_pred = {0.50}
IF [MM116 = (-inf, 0.75)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND MM31 = <0.23, 0.31) AND PG072 = (-inf, 1.95) AND BA13 = (-inf, 1075.50) THEN MM116_pred = {0.50}
IF [MM116 = (-inf, 0.75)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND PG072 = (-inf, 1.95) AND BA13 = (-inf, 1075.50) AND MM31 = <0.23, 0.31) THEN MM116_pred = {0.50}
IF [MM116 = (-inf, 0.75)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] THEN MM116_pred = {0.50}
IF [MM116 = (-inf, 0.75)] AND [DMM116 = <-0.05, inf)] AND [PD = <0.50, inf)] AND MM31 = <0.32, 0.36) THEN MM116_pred = {0.70}
IF [MM116 = (-inf, 0.75)] AND [DMM116 = <-0.05, inf)] AND [PD = <0.50, inf)] AND MM31 = <0.23, 0.36) THEN MM116_pred = {0.70}
Expand All @@ -19,3 +19,4 @@ Rules
IF [MM116 = <0.55, inf)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND MM31 = (-inf, 0.33) THEN MM116_pred = {0.60}
IF [MM116 = <0.55, inf)] AND [DMM116 = <-0.05, inf)] AND [PD = (-inf, 0.50)] AND MM31 = <0.33, inf) THEN MM116_pred = {0.90}
IF [MM116 = <0.55, inf)] AND [DMM116 = (-inf, 0.05)] AND [PD = (-inf, 0.50)] AND MM31 = <0.40, 0.56) AND BA13 = (-inf, 1074.50) THEN MM116_pred = {0.80}
IF [MM116 = <0.55, inf)] AND [DMM116 = (-inf, 0.05)] AND MM31 = <0.31, 0.51) AND BA13 = (-inf, 1075.50) AND AS038 = (-inf, 2.35) THEN MM116_pred = {0.80}

0 comments on commit 3a2a3ef

Please sign in to comment.