Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: plotting roc curve using roc package

by pme (Prior)
on Aug 02, 2015 at 08:03 UTC ( #1137154=note: print w/replies, xml ) Need Help??


in reply to plotting roc curve using roc package

Hi Numita,

This code is untested because I have never used Statistics::ROC but hopefully helps.

#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use Statistics::ROC; open(my $fh, "<roc_tp_fp.txt") or die "cannot open file 'roc_tp_fp.txt +': $!\n"; my @AoA; while ( <$fh> ) { chomp; push @AoA, [ split /,/ ]; } close $fh; print Dumper( \@AoA ) . "\n"; my @curves = roc('decrease', 0.95, @AoA); print Dumper( \@curves ) . "\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1137154]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2018-07-20 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (435 votes). Check out past polls.

    Notices?