# HG changeset patch
# User bgruening
# Date 1400168066 14400
# Node ID e390b5b6b89c9a3ce1754899f2710348cf859188
Uploaded
diff -r 000000000000 -r e390b5b6b89c perf.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/perf.xml Thu May 15 11:34:26 2014 -0400
@@ -0,0 +1,92 @@
+
+ suitable for boolean classification problems (perf)
+
+ perf
+
+
+ perf
+ -t $threshold
+ #echo ' '.join(str($performance_measures).split(','))#
+ $plot
+ -file "${infile}"
+ 2>/dev/null
+ > perf.out;
+
+ #if str($plot):
+ csplit --prefix 'perf' -s perf.out '/^$/';
+ cat perf00 | tr ' ' \\t > perf_plotting_data.out;
+ cat perf01 | awk '{printf("%s\t%s\n",$1,$2)}' > perf_results.out;
+ #else:
+ cat perf.out | awk '{printf("%s\t%s\n",$1,$2)}' > perf_results.out;
+ #end if
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ plot is not ''
+
+
+
+
+
+
+
+
+
+
+
+
+**What it does**
+
+Perf calculates a variety of performance metrics suitable for boolean classification problems. Metrics include: accuracy, root-mean-squared-error, cross-entropy, precision, recall, precision/recall break-even point and F-score, area under the ROC curve, lift, weighted cost, top 1, top 10, rank of lowest positive case, q-score, several measures of probability calibration, etc.
+
+For more information please refer to:
+
+http://osmot.cs.cornell.edu/kddcup/software.html
+
+
+
diff -r 000000000000 -r e390b5b6b89c test-data/testperf.dat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/testperf.dat Thu May 15 11:34:26 2014 -0400
@@ -0,0 +1,401 @@
+0 0.0015961
+0 0.654221
+0 0.12556
+0 0.11725
+0 0.727029
+0 0.20189
+0 0.562832
+0 0.160462
+0 0.0818121
+0 0.27536
+0 0.438482
+0 0.151092
+0 0.691876
+0 0.414477
+0 0.332679
+0 0.361263
+0 0.237297
+0 0.208162
+0 0.341566
+0 0.770998
+0 0.35737
+0 0.352472
+1 0.697399
+1 0.384571
+0 0.502433
+0 0.198719
+0 0.544349
+0 0.345221
+0 0.11104
+0 0.529076
+0 0.133932
+0 0.625849
+0 0.152404
+0 0.267981
+0 0.565683
+0 0.139732
+0 0.226702
+0 0.1013
+0 0.343114
+0 0.614326
+0 0.482519
+0 0.213385
+0 0.381946
+0 0.039021
+0 0.142488
+0 0.140184
+0 0.480409
+0 0.24593
+0 0.567183
+0 0.475094
+0 0.303807
+0 0.587598
+0 0.112245
+0 0.246584
+0 0.0819276
+0 0.482724
+0 0.196886
+0 0.0497889
+0 0.130539
+0 0.639298
+1 0.999995
+0 0.19849
+0 0.146878
+0 0.347279
+0 0.563587
+0 0.136094
+1 0.669042
+0 0.581372
+0 0.287632
+0 0.462228
+0 0.131748
+0 0.122795
+1 0.594384
+0 0.0829232
+0 0.308871
+0 0.564841
+0 0.0960604
+0 0.609872
+0 0.668091
+0 0.0621123
+0 0.252273
+0 0.493892
+0 0.35089
+0 0.0615231
+0 0.0906433
+0 0.395305
+0 0.380958
+0 0.280156
+0 0.496588
+0 0.682763
+0 0.398721
+0 0.213683
+0 0.220735
+0 0.102694
+0 0.163608
+0 0.136313
+0 0.113982
+0 0.113173
+0 0.514194
+0 0.145116
+0 0.54103
+0 0.265344
+0 0.185828
+0 0.0689529
+0 0.295296
+1 0.879992
+0 0.173599
+0 0.201635
+0 0.2325
+0 0.662518
+0 0.23712
+0 0.212729
+0 0.326093
+0 0.113074
+0 0.151317
+0 0.237828
+1 0.444752
+0 0.113093
+0 0.37035
+0 0.159817
+0 0.181284
+0 0.257803
+0 0.268542
+0 0.163371
+0 0.615467
+0 0.702536
+0 0.389375
+0 0.443769
+0 0.442111
+0 0.137445
+1 0.180686
+0 0.427723
+0 0.376503
+0 0.184044
+0 0.188669
+1 0.600754
+0 0.360632
+0 0.225736
+0 0.176667
+1 0.717387
+0 0.251649
+0 0.609184
+0 0.218065
+0 0.179893
+0 0.613607
+0 0.229091
+0 0.387958
+0 0.334372
+0 0.19623
+1 0.466643
+0 0.25555
+0 0.140296
+1 0.218969
+0 0.456968
+1 0.745903
+0 0.515293
+0 0.38074
+0 0.192821
+1 0.621159
+0 0.413147
+0 0.311494
+0 0.0936906
+0 0.114875
+1 0.503211
+0 0.283626
+0 0.377781
+0 0.198375
+0 0.44011
+0 0.530797
+0 0.160164
+0 0.0450833
+0 0.126747
+0 0.116427
+0 0.576867
+0 0.0537537
+0 0.128001
+0 0.120151
+0 0.13166
+0 0.269643
+0 0.138425
+0 0.35989
+0 0.0929647
+0 0.188469
+0 0.25451
+1 0.495452
+0 0.22656
+0 0.213299
+0 0.180763
+0 0.465015
+0 0.1622
+0 0.138646
+0 0.0899559
+0 0.116581
+0 0.353937
+0 0.105471
+0 0.171973
+0 0.221737
+0 0.418681
+0 0.035256
+0 0.314855
+0 0.293454
+0 0.519382
+0 0.141752
+0 0.354055
+1 0.619058
+1 0.432144
+0 0.224614
+0 0.213124
+0 0.223824
+0 0.115158
+0 0.39014
+0 0.0791146
+0 0.454837
+0 0.557525
+0 0.207882
+0 0.273063
+0 0.272026
+0 0.124933
+0 0.634787
+0 0.523595
+0 0.150267
+0 0.0573286
+0 0.705741
+1 0.895095
+0 0.155952
+0 0.302051
+0 0.252595
+0 0.18194
+0 0.229858
+0 0.317212
+0 0.709322
+0 0.323994
+0 0.0826109
+0 0.410829
+0 0.0964045
+0 0.146045
+1 0.56143
+0 0.248703
+1 0.288923
+0 0.190089
+1 0.722509
+0 0.507313
+0 0.107335
+1 0.758494
+0 0.395083
+0 0.488949
+0 0.193682
+0 0.0202376
+0 0.529133
+0 0.0598062
+0 0.498397
+0 0.367525
+0 0.352374
+0 0.396812
+0 0.235647
+0 0.111289
+0 0.541744
+0 0.178398
+0 0.151376
+0 0.608763
+1 0.371284
+0 0.264532
+0 0.781077
+0 0.274101
+0 0.238233
+0 0.583247
+0 0.565889
+0 0.173365
+0 0.182759
+0 0.0792661
+0 0.411258
+0 0.231957
+0 0.27907
+0 0.857599
+0 0.0865783
+0 0.608408
+0 0.112296
+0 0.087113
+0 0.373146
+0 0.0788618
+0 0.181423
+0 0.280509
+0 0.571627
+0 0.609189
+1 0.506492
+0 0.157487
+1 0.788752
+0 0.122261
+0 0.0659764
+0 0.288211
+0 0.32614
+0 0.243099
+0 0.134105
+0 0.275409
+1 0.448285
+0 0.367225
+0 0.167869
+0 0.125203
+0 0.477608
+0 0.0725797
+1 0.813682
+0 0.138098
+0 0.378865
+0 0.450532
+0 0.666966
+0 0.208811
+1 0.641923
+0 0.208303
+0 0.253172
+1 0.298592
+0 0.820155
+0 0.134838
+0 0.235524
+0 0.0259419
+1 0.588518
+0 0.191712
+0 0.150127
+0 0.35514
+0 0.414153
+0 0.192707
+0 0.304026
+0 0.741876
+0 0.24884
+0 0.11927
+0 0.126263
+0 0.127491
+0 0.351076
+0 0.349694
+0 0.423602
+0 0.027013
+0 0.197093
+0 0.363714
+0 0.342463
+0 0.169753
+0 0.0921197
+0 0.0882386
+1 0.833979
+0 0.0578531
+0 0.351512
+0 0.156445
+0 0.205773
+0 0.13783
+0 0.0553534
+1 0.648688
+0 0.133605
+0 0.231524
+0 0.125341
+0 0.0687433
+1 0.608922
+0 0.0703486
+0 0.172389
+0 0.225207
+0 0.136106
+0 0.245454
+0 0.157322
+1 0.809624
+1 0.65812
+0 0.484586
+0 0.161171
+0 0.473759
+0 0.265877
+1 0.715178
+1 0.638666
+0 0.362963
+0 0.35936
+0 0.193338
+0 0.109991
+0 0.609837
+0 0.580355
+0 0.214795
+0 0.0948552
+0 5.08574e-05
+0 0.616546
+0 0.0727898
+0 0.254125
+0 0.0938976
+0 0.172564
+0 0.149051
+0 0.337302
+0 0.333938
+0 0.125481
+0 0.526811
+0 0.224135
+0 0.364024
+1 0.896395
+1 0.41459
+1 0.831482
+0 0.232711
+0 0.371996
+0 0.168335
+0 0.442299
+0 0.308892
+0 0.351098
+0 0.143671
+0 0.049474
+0 0.0820859
+0 0.807985
+1 0.748585
+0 0.225181
+0 0.122507
+0 0.296934
diff -r 000000000000 -r e390b5b6b89c test-data/testperf.results
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/testperf.results Thu May 15 11:34:26 2014 -0400
@@ -0,0 +1,4 @@
+
+ACC 0.10474
+APR 0.54376
+ROC 0.88380
diff -r 000000000000 -r e390b5b6b89c test-data/testperf.results.plot
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/testperf.results.plot Thu May 15 11:34:26 2014 -0400
@@ -0,0 +1,402 @@
+0.0000 0.0000
+0.0000 0.0238
+0.0000 0.0476
+0.0000 0.0714
+0.0000 0.0952
+0.0028 0.0952
+0.0028 0.1190
+0.0028 0.1429
+0.0056 0.1429
+0.0056 0.1667
+0.0056 0.1905
+0.0084 0.1905
+0.0084 0.2143
+0.0111 0.2143
+0.0139 0.2143
+0.0139 0.2381
+0.0139 0.2619
+0.0139 0.2857
+0.0167 0.2857
+0.0195 0.2857
+0.0195 0.3095
+0.0195 0.3333
+0.0195 0.3571
+0.0223 0.3571
+0.0251 0.3571
+0.0279 0.3571
+0.0279 0.3810
+0.0306 0.3810
+0.0334 0.3810
+0.0334 0.4048
+0.0362 0.4048
+0.0390 0.4048
+0.0418 0.4048
+0.0418 0.4286
+0.0446 0.4286
+0.0446 0.4524
+0.0446 0.4762
+0.0474 0.4762
+0.0474 0.5000
+0.0501 0.5000
+0.0529 0.5000
+0.0529 0.5238
+0.0529 0.5476
+0.0557 0.5476
+0.0585 0.5476
+0.0613 0.5476
+0.0641 0.5476
+0.0669 0.5476
+0.0696 0.5476
+0.0724 0.5476
+0.0752 0.5476
+0.0752 0.5714
+0.0780 0.5714
+0.0808 0.5714
+0.0808 0.5952
+0.0808 0.6190
+0.0808 0.6429
+0.0836 0.6429
+0.0864 0.6429
+0.0891 0.6429
+0.0919 0.6429
+0.0947 0.6429
+0.0975 0.6429
+0.1003 0.6429
+0.1031 0.6429
+0.1058 0.6429
+0.1086 0.6429
+0.1114 0.6429
+0.1142 0.6429
+0.1142 0.6667
+0.1170 0.6667
+0.1198 0.6667
+0.1226 0.6667
+0.1253 0.6667
+0.1281 0.6667
+0.1309 0.6667
+0.1337 0.6667
+0.1365 0.6667
+0.1393 0.6667
+0.1421 0.6667
+0.1448 0.6667
+0.1476 0.6667
+0.1504 0.6667
+0.1504 0.6905
+0.1504 0.7143
+0.1532 0.7143
+0.1560 0.7143
+0.1588 0.7143
+0.1588 0.7381
+0.1616 0.7381
+0.1643 0.7381
+0.1671 0.7381
+0.1699 0.7381
+0.1727 0.7381
+0.1755 0.7381
+0.1783 0.7381
+0.1811 0.7381
+0.1838 0.7381
+0.1838 0.7619
+0.1866 0.7619
+0.1894 0.7619
+0.1922 0.7619
+0.1950 0.7619
+0.1978 0.7619
+0.1978 0.7857
+0.1978 0.8095
+0.2006 0.8095
+0.2033 0.8095
+0.2061 0.8095
+0.2089 0.8095
+0.2117 0.8095
+0.2117 0.8333
+0.2145 0.8333
+0.2173 0.8333
+0.2201 0.8333
+0.2201 0.8571
+0.2228 0.8571
+0.2256 0.8571
+0.2284 0.8571
+0.2312 0.8571
+0.2340 0.8571
+0.2368 0.8571
+0.2396 0.8571
+0.2423 0.8571
+0.2451 0.8571
+0.2479 0.8571
+0.2507 0.8571
+0.2535 0.8571
+0.2535 0.8810
+0.2563 0.8810
+0.2591 0.8810
+0.2618 0.8810
+0.2646 0.8810
+0.2674 0.8810
+0.2702 0.8810
+0.2730 0.8810
+0.2758 0.8810
+0.2758 0.9048
+0.2786 0.9048
+0.2813 0.9048
+0.2841 0.9048
+0.2869 0.9048
+0.2897 0.9048
+0.2925 0.9048
+0.2953 0.9048
+0.2981 0.9048
+0.3008 0.9048
+0.3036 0.9048
+0.3064 0.9048
+0.3092 0.9048
+0.3120 0.9048
+0.3148 0.9048
+0.3175 0.9048
+0.3203 0.9048
+0.3231 0.9048
+0.3259 0.9048
+0.3287 0.9048
+0.3315 0.9048
+0.3343 0.9048
+0.3370 0.9048
+0.3398 0.9048
+0.3426 0.9048
+0.3454 0.9048
+0.3482 0.9048
+0.3510 0.9048
+0.3538 0.9048
+0.3565 0.9048
+0.3593 0.9048
+0.3621 0.9048
+0.3649 0.9048
+0.3677 0.9048
+0.3705 0.9048
+0.3733 0.9048
+0.3760 0.9048
+0.3788 0.9048
+0.3816 0.9048
+0.3844 0.9048
+0.3872 0.9048
+0.3900 0.9048
+0.3900 0.9286
+0.3928 0.9286
+0.3955 0.9286
+0.3983 0.9286
+0.3983 0.9524
+0.4011 0.9524
+0.4039 0.9524
+0.4067 0.9524
+0.4095 0.9524
+0.4123 0.9524
+0.4150 0.9524
+0.4178 0.9524
+0.4206 0.9524
+0.4234 0.9524
+0.4262 0.9524
+0.4290 0.9524
+0.4318 0.9524
+0.4345 0.9524
+0.4373 0.9524
+0.4401 0.9524
+0.4429 0.9524
+0.4457 0.9524
+0.4485 0.9524
+0.4513 0.9524
+0.4540 0.9524
+0.4568 0.9524
+0.4596 0.9524
+0.4624 0.9524
+0.4652 0.9524
+0.4680 0.9524
+0.4708 0.9524
+0.4735 0.9524
+0.4763 0.9524
+0.4791 0.9524
+0.4819 0.9524
+0.4847 0.9524
+0.4875 0.9524
+0.4903 0.9524
+0.4930 0.9524
+0.4958 0.9524
+0.4986 0.9524
+0.5014 0.9524
+0.5042 0.9524
+0.5070 0.9524
+0.5097 0.9524
+0.5125 0.9524
+0.5153 0.9524
+0.5181 0.9524
+0.5209 0.9524
+0.5237 0.9524
+0.5265 0.9524
+0.5292 0.9524
+0.5320 0.9524
+0.5348 0.9524
+0.5376 0.9524
+0.5404 0.9524
+0.5432 0.9524
+0.5460 0.9524
+0.5460 0.9762
+0.5487 0.9762
+0.5515 0.9762
+0.5543 0.9762
+0.5571 0.9762
+0.5599 0.9762
+0.5627 0.9762
+0.5655 0.9762
+0.5682 0.9762
+0.5710 0.9762
+0.5738 0.9762
+0.5766 0.9762
+0.5794 0.9762
+0.5822 0.9762
+0.5850 0.9762
+0.5877 0.9762
+0.5905 0.9762
+0.5933 0.9762
+0.5961 0.9762
+0.5989 0.9762
+0.6017 0.9762
+0.6045 0.9762
+0.6072 0.9762
+0.6100 0.9762
+0.6128 0.9762
+0.6156 0.9762
+0.6184 0.9762
+0.6212 0.9762
+0.6240 0.9762
+0.6267 0.9762
+0.6295 0.9762
+0.6323 0.9762
+0.6351 0.9762
+0.6379 0.9762
+0.6407 0.9762
+0.6435 0.9762
+0.6435 1.0000
+0.6462 1.0000
+0.6490 1.0000
+0.6518 1.0000
+0.6546 1.0000
+0.6574 1.0000
+0.6602 1.0000
+0.6630 1.0000
+0.6657 1.0000
+0.6685 1.0000
+0.6713 1.0000
+0.6741 1.0000
+0.6769 1.0000
+0.6797 1.0000
+0.6825 1.0000
+0.6852 1.0000
+0.6880 1.0000
+0.6908 1.0000
+0.6936 1.0000
+0.6964 1.0000
+0.6992 1.0000
+0.7019 1.0000
+0.7047 1.0000
+0.7075 1.0000
+0.7103 1.0000
+0.7131 1.0000
+0.7159 1.0000
+0.7187 1.0000
+0.7214 1.0000
+0.7242 1.0000
+0.7270 1.0000
+0.7298 1.0000
+0.7326 1.0000
+0.7354 1.0000
+0.7382 1.0000
+0.7409 1.0000
+0.7437 1.0000
+0.7465 1.0000
+0.7493 1.0000
+0.7521 1.0000
+0.7549 1.0000
+0.7577 1.0000
+0.7604 1.0000
+0.7632 1.0000
+0.7660 1.0000
+0.7688 1.0000
+0.7716 1.0000
+0.7744 1.0000
+0.7772 1.0000
+0.7799 1.0000
+0.7827 1.0000
+0.7855 1.0000
+0.7883 1.0000
+0.7911 1.0000
+0.7939 1.0000
+0.7967 1.0000
+0.7994 1.0000
+0.8022 1.0000
+0.8050 1.0000
+0.8078 1.0000
+0.8106 1.0000
+0.8134 1.0000
+0.8162 1.0000
+0.8189 1.0000
+0.8217 1.0000
+0.8245 1.0000
+0.8273 1.0000
+0.8301 1.0000
+0.8329 1.0000
+0.8357 1.0000
+0.8384 1.0000
+0.8412 1.0000
+0.8440 1.0000
+0.8468 1.0000
+0.8496 1.0000
+0.8524 1.0000
+0.8552 1.0000
+0.8579 1.0000
+0.8607 1.0000
+0.8635 1.0000
+0.8663 1.0000
+0.8691 1.0000
+0.8719 1.0000
+0.8747 1.0000
+0.8774 1.0000
+0.8802 1.0000
+0.8830 1.0000
+0.8858 1.0000
+0.8886 1.0000
+0.8914 1.0000
+0.8942 1.0000
+0.8969 1.0000
+0.8997 1.0000
+0.9025 1.0000
+0.9053 1.0000
+0.9081 1.0000
+0.9109 1.0000
+0.9136 1.0000
+0.9164 1.0000
+0.9192 1.0000
+0.9220 1.0000
+0.9248 1.0000
+0.9276 1.0000
+0.9304 1.0000
+0.9331 1.0000
+0.9359 1.0000
+0.9387 1.0000
+0.9415 1.0000
+0.9443 1.0000
+0.9471 1.0000
+0.9499 1.0000
+0.9526 1.0000
+0.9554 1.0000
+0.9582 1.0000
+0.9610 1.0000
+0.9638 1.0000
+0.9666 1.0000
+0.9694 1.0000
+0.9721 1.0000
+0.9749 1.0000
+0.9777 1.0000
+0.9805 1.0000
+0.9833 1.0000
+0.9861 1.0000
+0.9889 1.0000
+0.9916 1.0000
+0.9944 1.0000
+0.9972 1.0000
+1.0000 1.0000
diff -r 000000000000 -r e390b5b6b89c tool_dependencies.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml Thu May 15 11:34:26 2014 -0400
@@ -0,0 +1,26 @@
+
+
+
+
+
+ http://osmot.cs.cornell.edu/kddcup/perf/perf.src.tar.gz
+ make
+
+ perf
+ $INSTALL_DIR
+
+
+ $INSTALL_DIR
+
+
+
+
+ Perf calculates a variety of performance metrics suitable for boolean classification problems. Metrics include: accuracy, root-mean-squared-error, cross-entropy,
+ precision, recall, precision/recall break-even point and F-score, area under the ROC curve, lift, weighted cost, top 1, top 10, rank of lowest positive case,
+ q-score, several measures of probability calibration, etc.
+
+ PERF requires a C compiler.
+ http://osmot.cs.cornell.edu/kddcup/software.html
+
+
+