Example run of Ruleminer on "heart" data from the UCI Machine learning repository:
java -jar ruleminer.jar --input heart-categ.csv --numericAttributes 7 --target 7 \ --antecedent 0-6,8-12 --negation false --maxlen 5 --trivialThreshold 1 \ --improvementThreshold 1 --count 100 --useProjections true --minCoverage 0.01 Ruleminer Copyright (C) 2007-2012 Michal Burda This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public License for more details. Records: 270 Antecedent attributes: 12 Target attributes: 1 Conditions: 34 No. Name Type Categories Usage Statistics --------------------------------------------------------------------------------------------------------------------------------------------------------- 0 age NOMINAL 3 antecedent 1 sex NOMINAL 2 antecedent 2 chest pain type NOMINAL 4 antecedent 3 resting blood pressure NOMINAL 3 antecedent 4 serum cholestoral NOMINAL 3 antecedent 5 fasting blood sugar NOMINAL 2 antecedent 6 resting electrocardiographic results NOMINAL 3 antecedent 7 maximum heart rate achieved NUMERIC - target NonNull=270, Min=71.0, Max=202.0, Avg=149.67777777777778, StDev=23.165716775120103 8 exercise induced angina NOMINAL 2 antecedent 9 oldpeak NOMINAL 3 antecedent 10 slope NOMINAL 3 antecedent 11 number of major vessels NOMINAL 3 antecedent 12 thal NOMINAL 3 antecedent 13 target NOMINAL 2 - Extender Setup Detail ------------------------------------------------------ MetadataCalculatingExtender useProjections=true ConditionLengthExtender maxlen=5 MinimumCoverageExtender minCoverage=0.01 TrivialConditionExtender confThreshold=1.0 VeryInterestingImpactExtender improvementThreshold=1.0 AvgImpactExtender count=100 Condition Combined Avg Impact Targets (Avg Impact, %, Statistics...) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- {slope=..1.5} 2.5657090769175936 maximum heart rate achieved (1376.8888888888896, 100%, NonNull=130, Min=96.0, Max=202.0, Avg=160.26923076923077, StDev=17.784144345494163) {exercise induced angina=0.0} 2.082029850433799 maximum heart rate achieved (1117.3222222222232, 100%, NonNull=181, Min=71.0, Max=202.0, Avg=155.85082872928177, StDev=21.243688262071057) {oldpeak=..0.15000000000000002} 1.938547249537743 maximum heart rate achieved (1040.3222222222216, 100%, NonNull=91, Min=96.0, Max=202.0, Avg=161.1098901098901, StDev=18.682999134359026) {thal=3.0, number of major vessels=..0.5} 1.8493934141180626 maximum heart rate achieved (992.4777777777788, 100%, NonNull=107, Min=71.0, Max=202.0, Avg=158.9532710280374, StDev=20.808372397689837) {thal=3.0, age=..50.5} 1.7820414803929734 maximum heart rate achieved (956.3333333333338, 100%, NonNull=60, Min=118.0, Max=202.0, Avg=165.61666666666667, StDev=16.800011770240587) {chest pain type=2.0} 0.9289721987018917 maximum heart rate achieved (498.5333333333329, 100%, NonNull=42, Min=103.0, Max=202.0, Avg=161.54761904761904, StDev=20.11334028965441) {chest pain type=3.0} 0.8393835675219171 maximum heart rate achieved (450.45555555555495, 100%, NonNull=79, Min=96.0, Max=194.0, Avg=155.37974683544303, StDev=19.275535043602346) {fasting blood sugar=0.0, sex=0.0} 0.5636609418173387 maximum heart rate achieved (302.4888888888893, 100%, NonNull=76, Min=97.0, Max=192.0, Avg=153.6578947368421, StDev=18.974054306924057) {resting electrocardiographic results=0.0} 0.494197142970838 maximum heart rate achieved (265.21111111111213, 100%, NonNull=131, Min=71.0, Max=194.0, Avg=151.70229007633588, StDev=23.93089237993065) {serum cholestoral=..226.5, resting blood pressure=121.0..139.0} 0.35974173024082634 maximum heart rate achieved (193.0555555555557, 99%, NonNull=25, Min=105.0, Max=202.0, Avg=157.4, StDev=24.041630560342615) {resting electrocardiographic results=2.0, fasting blood sugar=0.0, resting blood pressure=121.0..139.0} 0.28862156659321614 maximum heart rate achieved (154.88888888888937, 100%, NonNull=40, Min=105.0, Max=202.0, Avg=153.55, StDev=23.31825520147295) {chest pain type=1.0, sex=1.0} 0.2704843720210735 maximum heart rate achieved (145.15555555555557, 100%, NonNull=16, Min=125.0, Max=190.0, Avg=158.75, StDev=21.330729007701542) {serum cholestoral=226.5..267.5} 0.2701945081808799 maximum heart rate achieved (145.00000000000028, 100%, NonNull=90, Min=71.0, Max=194.0, Avg=151.2888888888889, StDev=22.234826637630665) {oldpeak=0.15000000000000002..1.45, fasting blood sugar=1.0} 0.26429370857692897 maximum heart rate achieved (141.83333333333323, 100%, NonNull=15, Min=124.0, Max=194.0, Avg=159.13333333333333, StDev=17.634652034586694) {fasting blood sugar=1.0, sex=1.0} 0.24288519352259805 maximum heart rate achieved (130.34444444444478, 100%, NonNull=29, Min=103.0, Max=194.0, Avg=154.17241379310346, StDev=19.677886365731926) {fasting blood sugar=1.0, age=50.5..58.5} 0.18656879028489687 maximum heart rate achieved (100.1222222222222, 100%, NonNull=19, Min=103.0, Max=184.0, Avg=154.94736842105263, StDev=19.859153177119147) {serum cholestoral=267.5.., resting blood pressure=..121.0, age=50.5..58.5} 0.1526754255422074 maximum heart rate achieved (81.93333333333341, 100%, NonNull=6, Min=156.0, Max=172.0, Avg=163.33333333333334, StDev=7.146094504459256) {slope=2.5.., oldpeak=0.15000000000000002..1.45} 0.14462135169681545 maximum heart rate achieved (77.61111111111106, 100%, NonNull=5, Min=152.0, Max=194.0, Avg=165.2, StDev=17.41263908774326) {thal=7.0, slope=2.5.., resting blood pressure=..121.0} 0.11673230935814545 maximum heart rate achieved (62.644444444444446, 100%, NonNull=2, Min=168.0, Max=194.0, Avg=181.0, StDev=18.384776310850235) {thal=7.0, fasting blood sugar=1.0, resting blood pressure=..121.0} 0.10861612183271215 maximum heart rate achieved (58.28888888888889, 100%, NonNull=4, Min=147.0, Max=194.0, Avg=164.25, StDev=20.56493779875511) {fasting blood sugar=1.0, resting blood pressure=139.0..} 0.10031359326715447 maximum heart rate achieved (53.83333333333354, 100%, NonNull=15, Min=124.0, Max=178.0, Avg=153.26666666666668, StDev=15.831553784707683) {thal=6.0, resting electrocardiographic results=2.0, resting blood pressure=..121.0} 0.09064456374068124 maximum heart rate achieved (48.644444444444446, 100%, NonNull=2, Min=158.0, Max=190.0, Avg=174.0, StDev=22.627416997969522) {number of major vessels=1.5.., oldpeak=0.15000000000000002..1.45, fasting blood sugar=0.0, resting blood pressure=139.0.., sex=1.0} 0.09064456374068124 maximum heart rate achieved (48.644444444444446, 100%, NonNull=2, Min=170.0, Max=178.0, Avg=174.0, StDev=5.656854249492381) {thal=7.0, number of major vessels=1.5.., oldpeak=0.15000000000000002..1.45, sex=1.0, age=58.5..} 0.08192794397484603 maximum heart rate achieved (43.9666666666667, 100%, NonNull=3, Min=160.0, Max=170.0, Avg=164.33333333333334, StDev=5.131601439446412) {oldpeak=0.15000000000000002..1.45, resting electrocardiographic results=2.0, serum cholestoral=267.5.., resting blood pressure=139.0.., age=58.5..} 0.0781390094923094 maximum heart rate achieved (41.93333333333328, 100%, NonNull=6, Min=146.0, Max=170.0, Avg=156.66666666666666, StDev=8.11582815655116) {thal=7.0, number of major vessels=0.5..1.5, resting electrocardiographic results=2.0, serum cholestoral=267.5.., resting blood pressure=139.0..} 0.07573728053070168 maximum heart rate achieved (40.644444444444446, 100%, NonNull=2, Min=145.0, Max=195.0, Avg=170.0, StDev=35.35533905932738) {thal=7.0, number of major vessels=0.5..1.5, resting electrocardiographic results=2.0, serum cholestoral=267.5.., age=50.5..58.5} 0.07573728053070168 maximum heart rate achieved (40.644444444444446, 100%, NonNull=2, Min=145.0, Max=195.0, Avg=170.0, StDev=35.35533905932738) {thal=7.0, number of major vessels=0.5..1.5, resting electrocardiographic results=2.0, resting blood pressure=139.0.., age=50.5..58.5} 0.07573728053070168 maximum heart rate achieved (40.644444444444446, 100%, NonNull=2, Min=145.0, Max=195.0, Avg=170.0, StDev=35.35533905932738) {fasting blood sugar=0.0, resting blood pressure=..121.0, age=50.5..58.5} 0.07403950660956557 maximum heart rate achieved (39.733333333333576, 100%, NonNull=24, Min=108.0, Max=190.0, Avg=151.33333333333334, StDev=21.273920892607553) {thal=7.0, number of major vessels=1.5.., oldpeak=0.15000000000000002..1.45, fasting blood sugar=0.0, sex=1.0} 0.0720104597282068 maximum heart rate achieved (38.644444444444446, 100%, NonNull=2, Min=168.0, Max=170.0, Avg=169.0, StDev=1.4142135623730951) {resting electrocardiographic results=2.0, resting blood pressure=..121.0, sex=1.0, age=50.5..58.5} 0.07128580012772164 maximum heart rate achieved (38.25555555555553, 100%, NonNull=7, Min=108.0, Max=190.0, Avg=155.14285714285714, StDev=24.74152091410025) {oldpeak=1.45.., resting electrocardiographic results=2.0, resting blood pressure=..121.0, age=50.5..58.5} 0.07074748156736135 maximum heart rate achieved (37.9666666666667, 100%, NonNull=3, Min=160.0, Max=165.0, Avg=162.33333333333334, StDev=2.5166114784226195) {thal=7.0, number of major vessels=1.5.., resting electrocardiographic results=2.0, fasting blood sugar=0.0, serum cholestoral=267.5..} 0.06695854708482474 maximum heart rate achieved (35.93333333333328, 100%, NonNull=6, Min=142.0, Max=171.0, Avg=155.66666666666666, StDev=12.143585412334719) {number of major vessels=1.5.., oldpeak=0.15000000000000002..1.45, fasting blood sugar=0.0, serum cholestoral=267.5.., resting blood pressure=139.0..} 0.060829997320722126 maximum heart rate achieved (32.644444444444446, 100%, NonNull=2, Min=162.0, Max=170.0, Avg=166.0, StDev=5.656854249492381) {thal=7.0, oldpeak=0.15000000000000002..1.45, resting blood pressure=139.0.., sex=1.0, age=58.5..} 0.0552397661169798 maximum heart rate achieved (29.644444444444446, 100%, NonNull=2, Min=159.0, Max=170.0, Avg=164.5, StDev=7.7781745930520225) {oldpeak=0.15000000000000002..1.45, resting electrocardiographic results=2.0, resting blood pressure=139.0.., sex=1.0, age=58.5..} 0.0552397661169798 maximum heart rate achieved (29.644444444444446, 100%, NonNull=2, Min=159.0, Max=170.0, Avg=164.5, StDev=7.7781745930520225) {oldpeak=0.15000000000000002..1.45, fasting blood sugar=0.0, resting blood pressure=139.0.., sex=1.0, age=58.5..} 0.0552397661169798 maximum heart rate achieved (29.644444444444446, 100%, NonNull=2, Min=159.0, Max=170.0, Avg=164.5, StDev=7.7781745930520225) {thal=7.0, number of major vessels=1.5.., oldpeak=0.15000000000000002..1.45, exercise induced angina=1.0} 0.04778612451199002 maximum heart rate achieved (25.644444444444446, 100%, NonNull=2, Min=160.0, Max=165.0, Avg=162.5, StDev=3.5355339059327378) {thal=7.0, resting electrocardiographic results=2.0, fasting blood sugar=0.0, serum cholestoral=267.5.., age=50.5..58.5} 0.043997190029453605 maximum heart rate achieved (23.611111111111143, 100%, NonNull=5, Min=111.0, Max=195.0, Avg=154.4, StDev=31.28577951721835) {oldpeak=1.45.., resting electrocardiographic results=2.0, resting blood pressure=139.0.., sex=1.0, age=50.5..58.5} 0.038469072505752794 maximum heart rate achieved (20.644444444444446, 100%, NonNull=2, Min=155.0, Max=165.0, Avg=160.0, StDev=7.0710678118654755) {thal=7.0, number of major vessels=1.5.., slope=1.5..2.5, serum cholestoral=267.5.., age=58.5..} 0.031615863141165025 maximum heart rate achieved (16.966666666666697, 100%, NonNull=3, Min=142.0, Max=170.0, Avg=155.33333333333334, StDev=14.047538337136812) {thal=7.0, number of major vessels=1.5.., fasting blood sugar=0.0, serum cholestoral=267.5.., age=58.5..} 0.031615863141165025 maximum heart rate achieved (16.966666666666697, 100%, NonNull=3, Min=142.0, Max=170.0, Avg=155.33333333333334, StDev=14.047538337136812) {thal=7.0, number of major vessels=1.5.., serum cholestoral=267.5.., resting blood pressure=139.0.., age=58.5..} 0.031615863141165025 maximum heart rate achieved (16.966666666666697, 100%, NonNull=3, Min=142.0, Max=170.0, Avg=155.33333333333334, StDev=14.047538337136812) {thal=7.0, oldpeak=0.15000000000000002..1.45, serum cholestoral=267.5.., chest pain type=4.0, age=58.5..} 0.03101543090076302 maximum heart rate achieved (16.644444444444446, 100%, NonNull=2, Min=146.0, Max=170.0, Avg=158.0, StDev=16.97056274847714) {oldpeak=0.15000000000000002..1.45, exercise induced angina=1.0, resting blood pressure=139.0.., chest pain type=4.0, age=58.5..} 0.02975245273991753 maximum heart rate achieved (15.966666666666669, 100%, NonNull=3, Min=146.0, Max=165.0, Avg=155.0, StDev=9.539392014169456) {thal=7.0, slope=1.5..2.5, serum cholestoral=267.5.., chest pain type=4.0, age=58.5..} 0.024762653776577152 maximum heart rate achieved (13.288888888888891, 99%, NonNull=4, Min=142.0, Max=170.0, Avg=153.0, StDev=12.382783747337808) {thal=7.0, oldpeak=0.15000000000000002..1.45, exercise induced angina=1.0, resting blood pressure=139.0.., age=58.5..} 0.021698378894525798 maximum heart rate achieved (11.644444444444446, 100%, NonNull=2, Min=146.0, Max=165.0, Avg=155.5, StDev=13.435028842544403) {thal=7.0, number of major vessels=1.5.., resting blood pressure=139.0.., sex=1.0, age=58.5..} 0.016708579931185366 maximum heart rate achieved (8.96666666666664, 100%, NonNull=3, Min=142.0, Max=170.0, Avg=152.66666666666666, StDev=15.14375558880081) {thal=7.0, resting electrocardiographic results=2.0, serum cholestoral=267.5.., resting blood pressure=139.0.., age=58.5..} 0.01598392033070031 maximum heart rate achieved (8.577777777777783, 100%, NonNull=8, Min=140.0, Max=170.0, Avg=150.75, StDev=9.982126884730384) {thal=7.0, number of major vessels=1.5.., exercise induced angina=1.0, resting blood pressure=139.0.., age=58.5..} 0.01424473728953602 maximum heart rate achieved (7.644444444444446, 100%, NonNull=2, Min=142.0, Max=165.0, Avg=153.5, StDev=16.263455967290593) {oldpeak=1.45.., resting electrocardiographic results=2.0, fasting blood sugar=0.0, resting blood pressure=139.0.., age=50.5..58.5} 0.01424473728953602 maximum heart rate achieved (7.644444444444446, 100%, NonNull=2, Min=142.0, Max=165.0, Avg=153.5, StDev=16.263455967290593) {thal=7.0, oldpeak=0.15000000000000002..1.45, exercise induced angina=1.0, resting blood pressure=..121.0} 0.012981759128690531 maximum heart rate achieved (6.966666666666669, 100%, NonNull=3, Min=142.0, Max=160.0, Avg=152.0, StDev=9.16515138991168) {thal=7.0, number of major vessels=1.5.., resting electrocardiographic results=2.0, fasting blood sugar=0.0, age=50.5..58.5} 0.012319213208246999 maximum heart rate achieved (6.611111111111114, 100%, NonNull=5, Min=130.0, Max=173.0, Avg=151.0, StDev=20.77257807784099) {number of major vessels=1.5.., slope=2.5.., fasting blood sugar=0.0} 0.010517916487041132 maximum heart rate achieved (5.644444444444446, 100%, NonNull=2, Min=145.0, Max=160.0, Avg=152.5, StDev=10.606601717798213) {number of major vessels=1.5.., slope=2.5.., age=58.5..} 0.010517916487041132 maximum heart rate achieved (5.644444444444446, 100%, NonNull=2, Min=145.0, Max=160.0, Avg=152.5, StDev=10.606601717798213) {thal=7.0, slope=1.5..2.5, oldpeak=0.15000000000000002..1.45, resting blood pressure=139.0.., age=58.5..} 0.01045580280699966 maximum heart rate achieved (5.611111111111171, 99%, NonNull=5, Min=114.0, Max=170.0, Avg=150.8, StDev=22.443261795024295) {thal=7.0, oldpeak=1.45.., resting electrocardiographic results=2.0, resting blood pressure=139.0.., age=50.5..58.5} 0.007391527924948199 maximum heart rate achieved (3.9666666666666686, 100%, NonNull=3, Min=133.0, Max=165.0, Avg=151.0, StDev=16.3707055437449) {thal=7.0, fasting blood sugar=0.0, serum cholestoral=267.5.., chest pain type=4.0, age=58.5..} 0.006728982004504718 maximum heart rate achieved (3.6111111111111427, 100%, NonNull=5, Min=140.0, Max=170.0, Avg=150.4, StDev=12.198360545581346) {thal=7.0, serum cholestoral=267.5.., resting blood pressure=139.0.., chest pain type=4.0, age=58.5..} 0.006728982004504718 maximum heart rate achieved (3.6111111111111427, 100%, NonNull=5, Min=140.0, Max=170.0, Avg=150.4, StDev=12.198360545581346) {number of major vessels=0.5..1.5, resting electrocardiographic results=2.0, serum cholestoral=267.5.., resting blood pressure=139.0.., sex=1.0} 0.005528117523700702 maximum heart rate achieved (2.96666666666664, 100%, NonNull=3, Min=112.0, Max=195.0, Avg=150.66666666666666, StDev=41.78915329763617) {number of major vessels=0.5..1.5, resting electrocardiographic results=2.0, resting blood pressure=139.0.., sex=1.0, age=50.5..58.5} 0.005528117523700702 maximum heart rate achieved (2.96666666666664, 100%, NonNull=3, Min=112.0, Max=195.0, Avg=150.66666666666666, StDev=41.78915329763617) {slope=2.5.., resting electrocardiographic results=2.0, fasting blood sugar=0.0, resting blood pressure=139.0..} 0.003002161202009777 maximum heart rate achieved (1.6111111111111143, 100%, NonNull=5, Min=140.0, Max=160.0, Avg=150.0, StDev=9.354143466934854) {number of major vessels=0.5..1.5, resting blood pressure=139.0.., chest pain type=4.0, age=58.5..} 0.0012008644808039108 maximum heart rate achieved (0.6444444444444457, 100%, NonNull=2, Min=138.0, Max=162.0, Avg=150.0, StDev=16.97056274847714) {slope=2.5.., fasting blood sugar=0.0, serum cholestoral=267.5.., chest pain type=4.0} 0.0012008644808039108 maximum heart rate achieved (0.6444444444444457, 100%, NonNull=2, Min=140.0, Max=160.0, Avg=150.0, StDev=14.142135623730951) {slope=2.5.., serum cholestoral=267.5.., chest pain type=4.0, age=58.5..} 0.0012008644808039108 maximum heart rate achieved (0.6444444444444457, 100%, NonNull=2, Min=140.0, Max=160.0, Avg=150.0, StDev=14.142135623730951) {thal=7.0, number of major vessels=1.5.., slope=1.5..2.5, resting blood pressure=139.0.., age=58.5..} 4.762048803189055E-4 maximum heart rate achieved (0.2555555555556168, 100%, NonNull=7, Min=114.0, Max=170.0, Avg=149.71428571428572, StDev=18.553654498186923) {thal=7.0, slope=1.5..2.5, resting blood pressure=139.0.., chest pain type=4.0, age=58.5..} 4.762048803189055E-4 maximum heart rate achieved (0.2555555555556168, 100%, NonNull=7, Min=114.0, Max=170.0, Avg=149.71428571428572, StDev=18.553654498186923) Total: 67 rules MetadataCalculatingExtender: 6244 hits ConditionLengthExtender: 1692 hits MinimumCoverageExtender: 832 hits TrivialConditionExtender: 156 hits VeryInterestingImpactExtender: 1572 hits AvgImpactExtender: 0 hits Search time: 0:00:00.242 (0.242s)