pr_curve
Builtin index · Statistics & ML
result = pr_curve(actual, score)
Input: actual, score · Output: result
What it is
Precision-recall curve of score against 0/1 labels actual.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = pr_curve(actual, score) | actual —not documented yetscore —not documented yet | result — | Returns {precision, recall, thresholds, ap}, one point per distinct threshold from high to low; ap is the average precision sum (R_n - R_(n-1)) P_n. Same errors as roc_curve. |
Examples
No documentation example calls this form yet. The Statistics & ML chapter is where one belongs.
How it works
roc_curve(actual, score) / pr_curve(actual, score) -- the curves behind roc_auc: 0/1 labels against any real-valued score.
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.