numita has asked for the wisdom of the Perl Monks concerning the following question:
hello everyone,I tried to write a code for roc curve using perl module statistic:roc, but when i run the program it gives the error value out of range for table lookup (2):0.711752437,1 at line 16.
use Statistics::ROC; open(fh,"<roc_tp_fp.txt"); while ( <fh> ) { ($a,$b)=split/,/; push @AoA, [ split ]; } for $aref ( @AoA ) { #print "[ @$aref ],"; } @curves=roc('decrease',0.95,@AoA); print "$curves[0][2][0] $curves[0][2][1] \n";
input_file:roc_tp_fp.txt looks like as follows: 0.9883817,1 0.770431568,1 0.983195895,1 0.812109932,1 0.901505931,1 0.72431528,1 0.73553418,1 0.724572657,1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: plotting roc curve using roc package
by Athanasius (Archbishop) on Aug 02, 2015 at 07:54 UTC | |
|
Re: plotting roc curve using roc package
by GrandFather (Saint) on Aug 02, 2015 at 07:52 UTC | |
by Athanasius (Archbishop) on Aug 02, 2015 at 08:26 UTC | |
by GrandFather (Saint) on Aug 02, 2015 at 09:15 UTC | |
by roboticus (Chancellor) on Aug 02, 2015 at 15:09 UTC | |
|
Re: plotting roc curve using roc package
by Laurent_R (Canon) on Aug 02, 2015 at 07:54 UTC | |
by GrandFather (Saint) on Aug 02, 2015 at 08:11 UTC | |
by Laurent_R (Canon) on Aug 02, 2015 at 08:20 UTC | |
|
Re: plotting roc curve using roc package
by pme (Monsignor) on Aug 02, 2015 at 08:03 UTC |