RePrec - compute average of recall-precision curves
require RePrec::Average; $av = RePrec::Average->new(@reprecs); $av->calculate; $av->gnuplot;
Given some recall-precision RePrec(3) oobjects the average precision over same recall points is calculated (macro measure).
$av = RePrec::Average->new(@reprecs)
constructor. @reprecs is an array of RePrec(3) objects.
($graph, $average) = $rp->calculate([$points])
calculates precision values for $points (see respective method in RePrec(3)). As a result you get a list of (recall, average precision) pairs (array of array references with two elements each) and the averaged average precision (over all recall points computed).
$rp->gnuplot([$gnuplot])
plot curve with gnuplot(1). $gnuplot is a hash reference where parameters for gnuplot can be set.
$rp->write_rpdata($file, [$average]);
Write the recall-precision data to file(s). Writes data for average precision if $average is true.
Yes. Please let me know!
gnuplot(1), perl(1).
Norbert Gövert <goevert@ls6.cs.uni-dortmund.de>
3 POD Errors
The following errors were encountered while parsing the POD:
You can't have =items (as at line 61) unless the first thing after the =over is an =item
=cut found outside a pod block. Skipping to next block.
To install RePrec, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RePrec
CPAN shell
perl -MCPAN -e shell install RePrec
For more information on module installation, please visit the detailed CPAN module installation guide.