bob.measure.plot.precision_recall_curve

bob.measure.plot.precision_recall_curve(negatives, positives, npoints=100, **kwargs)[source]

Plots Precision-Recall curve.

This method will call matplotlib to plot the precision-recall curve for a system which contains a particular set of negatives (impostors) and positives (clients) scores. We use the standard matplotlib.pyplot.plot() command. All parameters passed with exeception of the three first parameters of this method will be directly passed to the plot command. If you wish to understand your options, look here:

http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot

The plot will represent the false-alarm on the vertical axis and the false-rejection on the horizontal axis.

Input arguments:

negatives
a blitz array of negative class scores in float64 format
positives
a blitz array of positive class scores in float64 format
npoints
number of points to use when drawing the ROC curve
kwargs
a dictionary of extra plotting parameters, that is passed directly to matplotlib.pyplot.plot().

Note

This function does not initiate and save the figure instance, it only issues the plotting command. You are the responsible for setting up and saving the figure as you see fit.

Return value is the matplotlib line that was added as defined by the matplotlib.pyplot.plot() command.