{
  "name": "scikit-learn precision_recall_curve worked example: output arrays for a four-sample input",
  "description": "Precision, recall and threshold values returned by sklearn.metrics.precision_recall_curve for the documentation's example y_true=[0,0,1,1], y_scores=[0.1,0.4,0.35,0.8], listed point by point including the final sentinel point with no threshold.",
  "page": "https://casrai.org/guides/sklearn-precision-recall-curve",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:05:41Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Point",
      "unit": "",
      "description": ""
    },
    {
      "name": "Threshold",
      "unit": "",
      "description": ""
    },
    {
      "name": "Precision",
      "unit": "",
      "description": ""
    },
    {
      "name": "Recall",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Point": "1",
      "Threshold": 0.1,
      "Precision": 0.5,
      "Recall": 1
    },
    {
      "Point": "2",
      "Threshold": 0.35,
      "Precision": 0.66666667,
      "Recall": 1
    },
    {
      "Point": "3",
      "Threshold": 0.4,
      "Precision": 0.5,
      "Recall": 0.5
    },
    {
      "Point": "4",
      "Threshold": 0.8,
      "Precision": 1,
      "Recall": 0.5
    },
    {
      "Point": "5 (sentinel)",
      "Threshold": "none",
      "Precision": 1,
      "Recall": 0
    }
  ],
  "sources": [
    {
      "title": "sklearn.metrics.precision_recall_curve",
      "url": "https://scikit-learn.org/stable/modules/generated/sklearn.metrics.precision_recall_curve.html",
      "accessed": "2026-11-15"
    }
  ]
}