Fixed a bug in the threshold given in the ROC output.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 24 Jul 2009 10:56:21 +0000 (12:56 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 24 Jul 2009 10:56:21 +0000 (12:56 +0200)
data-tool.cc

index bcf19b3..0a2e049 100644 (file)
@@ -305,7 +305,7 @@ int main(int argc, char **argv) {
           if(tmp[n].value < tmp[n+1].value) {
             cout << double(nb_fp)/double(nb_rn) << " "
                  << 1 - double(nb_fn) / double(nb_rp) << " "
-                 << (tmp[n].value + tmp[n+1].value) << " "
+                 << (tmp[n].value + tmp[n+1].value)/2 << " "
                  << endl;
           }
         }