scikit-learn/scikit-learn — pull request #1063 by welinder (2012-08-24 23:23:59+00:00)
Title: make precision_recall_curve work on native python lists

I changed `metrics.precision_recall_curve` to support native python `list`s. Previously it assumed that the input arrays were `ndarray`s (and called the `ravel` instance method).

Note that now `precision_recall_curve` is consistent with `roc_curve` which already supports native Python lists.