Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: plotting roc curve using roc package

by pme (Monsignor)
on Aug 02, 2015 at 08:03 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1137154]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-19 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found