RePrec - compute average of recall-precision curves



NAME

RePrec - compute average of recall-precision curves


SYNOPSIS

  require RePrec::Average;
  $av = RePrec::Average->new(@reprecs);
  $av->calculate;
  $av->gnuplot;


DESCRIPTION

Given some recall-precision RePrec(3) oobjects the average precision over same recall points is calculated (macro measure).


METHODS

$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.


BUGS

Yes. Please let me know!


SEE ALSO

gnuplot(1), perl(1).


AUTHOR

Norbert Gövert <goevert@ls6.cs.uni-dortmund.de>

 RePrec - compute average of recall-precision curves