Weka M5Rules encoding -


i beginner weka data mining tool.

i wondering how can encode output model of m5rules c program embedded in energy consumption simulator. complete model described below.

a priori expect kind of if-then-else encoding in c, there strange expressions in if conditions of these rules, not understand.

e.g., in rule: 1, if condition equivalent exectime <= 959678 && exectime > 767156?

how 1 interpret conditions in rule: 15 , rule: 16 respect 849021 (are these 2 conditions equivalent)?

i appreciate towards possible c encoding of these rules :-). lot!

jh

************************ m5rules output

rule: 1 if     exectime <= 959678     exectime <= 841942.5     exectime > 767156     exectime <= 797926.5  energytotal =     0.0474 * _h08y299neeoetou3onmhpq.x     + 0.0444 * _h08aft9neeoetou3onmhpq.x     + 0.0353 * _h08yxt9neeoetou3onmhpq.x     + 0.1149 * _h08zin9neeoetou3onmhpq.x     - 3.6692 * _h08ah99neeoetou3onmhpq.y     - 0.0622 * _h08zrt9neeoetou3onmhpq.y     + 0.0002 * exectime     + 9283.9945 [905/5.48%]  rule: 2 if     exectime <= 990800     exectime > 841942.5     exectime > 891748.5     exectime <= 953522.5  energytotal =     5.7526 * _h08y999neeoetou3onmhpq.x     + 0.0241 * _h08aft9neeoetou3onmhpq.x     - 5.473 * _h08yxt9neeoetou3onmhpq.x     - 4.7454 * _h08ah99neeoetou3onmhpq.y     - 0.0244 * _h08zrt9neeoetou3onmhpq.y     + 0.0002 * exectime     + 9962.3473 [1076/7.136%]  rule: 3 if     exectime <= 922644.5     exectime > 841942.5     exectime <= 875547     exectime <= 869750.5  energytotal =     0.0538 * _h08aft9neeoetou3onmhpq.x     + 0.0522 * _h08yxt9neeoetou3onmhpq.x     - 0.2158 * _h08zin9neeoetou3onmhpq.x     - 3.025 * _h08zrt9neeoetou3onmhpq.y     + 0.0858 * _h08amd9neeoetou3onmhpq.x     - 4.3856 * _h08yud9neeoetou3onmhpq.y     + 0.0001 * exectime     + 9675.1495 [890/5.322%]  rule: 4 if     exectime > 922644.5     exectime <= 1144991.5     exectime <= 1100913.5     exectime > 990800     exectime > 1023515  energytotal =     0.0177 * _h08aft9neeoetou3onmhpq.x     + 0.0212 * _h08yxt9neeoetou3onmhpq.x     - 0.0141 * _h08zrt9neeoetou3onmhpq.y     + 0.2791 * _h08amd9neeoetou3onmhpq.x     + 0.1004 * _h08zat9neeoetou3onmhpq.x     + 0.2871 * _h08zvn9neeoetou3onmhpq.x     + 0.0029 * exectime     + 7616.5061 [759/5.317%]  rule: 5 if     exectime > 922644.5     exectime <= 1175937.5     exectime > 1061802     exectime > 1112381.5  energytotal =     0.1694 * _h08aft9neeoetou3onmhpq.x     + 0.03 * _h08yxt9neeoetou3onmhpq.x     - 0.0678 * _h08zrt9neeoetou3onmhpq.y     + 0.0004 * exectime     + 10581.9568 [495/4.516%]  rule: 6 if     exectime <= 922644.5     exectime <= 768103.5     exectime > 721726.5     exectime <= 729278     exectime > 722094     exectime <= 724494  energytotal =     0.4341 * _h08y999neeoetou3onmhpq.x     + 0.0958 * _h08aft9neeoetou3onmhpq.x     + 11.1267 * _h08yxt9neeoetou3onmhpq.x     + 18.5669 * _h08zin9neeoetou3onmhpq.x     - 0.2536 * _h08ah99neeoetou3onmhpq.y     - 8.0408 * _h08zrt9neeoetou3onmhpq.y     + 0.0942 * _h08amd9neeoetou3onmhpq.x     - 0.0121 * exectime     + 17795.1451 [294/5.734%]  rule: 7 if     exectime <= 990800     exectime <= 869756.5     exectime <= 768103.5     exectime > 721636.5     exectime <= 730227.5     exectime <= 728964  energytotal =     0.1634 * _h08y299neeoetou3onmhpq.x     + 0.3896 * _h08y999neeoetou3onmhpq.x     + 0.1997 * _h08aft9neeoetou3onmhpq.x     + 0.1235 * _h08yxt9neeoetou3onmhpq.x     - 0.3961 * _h08zrt9neeoetou3onmhpq.y     + 0.1817 * _h08amd9neeoetou3onmhpq.x     - 0.2828 * _h08yud9neeoetou3onmhpq.y     + 0.4399 * _h08zat9neeoetou3onmhpq.x     + 0.0003 * exectime     + 8867.5503 [402/4.404%]  rule: 8 if     exectime > 1061802     exectime <= 1266307     exectime > 1144257     exectime > 1193767.5  energytotal =     -0.3281 * _h08y299neeoetou3onmhpq.x     + 0.062 * _h08aft9neeoetou3onmhpq.x     + 13.1349 * _h08yxt9neeoetou3onmhpq.x     - 0.0428 * _h08zrt9neeoetou3onmhpq.y     - 0.254 * _h08yud9neeoetou3onmhpq.y     + 0.3602 * _h08zat9neeoetou3onmhpq.x     + 0.0028 * exectime     + 8065.2375 [293/4.695%]  rule: 9 if     exectime > 1061802     exectime <= 1230073  energytotal =     0.117 * _h08aft9neeoetou3onmhpq.x     + 0.0723 * _h08yxt9neeoetou3onmhpq.x     - 0.0625 * _h08zrt9neeoetou3onmhpq.y     - 17.6704 * _h08zvn9neeoetou3onmhpq.x     + 0.0051 * exectime     + 5341.2406 [283/7.376%]  rule: 10 if     exectime > 1145764     exectime > 1349259.5  energytotal =     0.1985 * _h08aft9neeoetou3onmhpq.x     + 0.12 * _h08yxt9neeoetou3onmhpq.x     - 0.1002 * _h08zrt9neeoetou3onmhpq.y     + 0.005 * exectime     + 5325.0455 [281/6.55%]  rule: 11 if     exectime <= 922644.5     exectime > 869756.5     exectime > 881525  energytotal =     0.151 * _h08y299neeoetou3onmhpq.x     + 0.2828 * _h08aft9neeoetou3onmhpq.x     - 0.6376 * _h08zin9neeoetou3onmhpq.x     - 0.0385 * _h08zrt9neeoetou3onmhpq.y     + 0.0006 * exectime     + 9300.7835 [253/4.516%]  rule: 12 if     exectime <= 917420.5     exectime > 768103.5     exectime <= 869756.5     exectime > 806810.5  energytotal =     0.1013 * _h08y299neeoetou3onmhpq.x     + 0.8919 * _h08aft9neeoetou3onmhpq.x     - 0.0522 * _h08zrt9neeoetou3onmhpq.y     - 0.0555 * _h08zat9neeoetou3onmhpq.x     + 0.0005 * exectime     + 9049.7419 [228/4.466%]  rule: 13 if     exectime <= 917420.5     exectime > 768103.5  energytotal =     0.1663 * _h08y299neeoetou3onmhpq.x     + 0.3315 * _h08aft9neeoetou3onmhpq.x     - 0.0572 * _h08zrt9neeoetou3onmhpq.y     + 0.0723 * _h08amd9neeoetou3onmhpq.x     - 0.0782 * _h08zat9neeoetou3onmhpq.x     + 0.0047 * exectime     + 5620.2818 [696/9.48%]  rule: 14 if     exectime <= 1145764     exectime > 845905     exectime <= 959678  energytotal =     -0.5334 * _h08y999neeoetou3onmhpq.x     + 0.4001 * _h08aft9neeoetou3onmhpq.x     - 0.7092 * _h08zrt9neeoetou3onmhpq.y     + 0.3418 * _h08amd9neeoetou3onmhpq.x     + 0.0004 * exectime     + 9771.3597 [269/4.341%]  rule: 15 if     exectime > 849021     exectime > 1145764     exectime > 1276509  energytotal =     0.9858 * _h08aft9neeoetou3onmhpq.x     - 0.7268 * _h08zrt9neeoetou3onmhpq.y     + 0.3091 * _h08amd9neeoetou3onmhpq.x     + 0.0006 * exectime     + 10999.3844 [193/4.635%]  rule: 16 if     exectime > 849021  energytotal =     0.682 * _h08aft9neeoetou3onmhpq.x     - 15.4759 * _h08zin9neeoetou3onmhpq.x     - 0.4643 * _h08zrt9neeoetou3onmhpq.y     + 0.6401 * _h08amd9neeoetou3onmhpq.x     - 17.6902 * _h08yud9neeoetou3onmhpq.y     + 15.1697 * _h08zvn9neeoetou3onmhpq.x     + 0.005 * exectime     + 5395.084 [268/9.01%]  rule: 17 if     exectime > 657837     exectime <= 730227.5  energytotal =     1.749 * _h08y299neeoetou3onmhpq.x     + 1.5395 * _h08aft9neeoetou3onmhpq.x     - 0.686 * _h08ah99neeoetou3onmhpq.y     - 1.0553 * _h08zrt9neeoetou3onmhpq.y     + 22.5421 * _h08amd9neeoetou3onmhpq.x     - 0.6172 * _h08yud9neeoetou3onmhpq.y     + 0.0005 * exectime     + 8690.2253 [161/37.564%]  rule: 18  energytotal =     12.3579 * _h08y299neeoetou3onmhpq.x     + 16.0776 * _h08amd9neeoetou3onmhpq.x     - 10.38 * _h08zvn9neeoetou3onmhpq.x     + 0.005 * exectime     + 5484.0874 [252/25.693%]   

rule 1 equivalent exectime <= 797926.5 && exectime > 767156 (other conditions spurious) rule 15 equals exectime > 1276509 rule 16 equals exectime > 849021 (&& exectime <= 1276509) (first rule match wins)


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -