# How can I get a PR Curve?

**URL:** <https://discuss.roboflow.com/t/how-can-i-get-a-pr-curve/5918>\
**Category:** 🤝  Community Help\
**Created:** [May 23, 2024, 1:31pm UTC](https://discuss.roboflow.com/t/how-can-i-get-a-pr-curve/5918 "2024-05-23T13:31:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artur\_Nijazov](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/artur_nijazov/32/4579_2.png) [@Artur\_Nijazov](https://discuss.roboflow.com/u/Artur_Nijazov)\
**Post date:** [May 23, 2024, 1:31pm UTC](https://discuss.roboflow.com/t/how-can-i-get-a-pr-curve/5918/1 "2024-05-23T13:31:58Z")

</div>

Hello. How can I get a PR Curve or data - True labels and Predicted probabilities to build it?  
This is an example:

 ![PR_curve](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/9/9f5306de844e5b950e8b10f76a9f039150ff14b9.png)

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [May 23, 2024, 3:58pm UTC](https://discuss.roboflow.com/t/how-can-i-get-a-pr-curve/5918/2 "2024-05-23T15:58:37Z")

</div>

Hey @Artur_Nijazov

Could you see if this resolves your issue:

> [@How i get the data of the PR-graph and F1-score graph into a csv-File](https://discuss.roboflow.com/t/how-i-get-the-data-of-the-pr-graph-and-f1-score-graph-into-a-csv-file/5662/3):
>
> Hey @DanyelR3199 I’m assuming you are referring to the results of a Roboflow Train job. If you are talking about a locally/notebook-trained model, please create an Issue at the respective GitHub repo for the model. For a simple graph, the easiest way to get a precision and recall graph is by clicking “More Metrics” and look under the “Training Graphs” tab. If you need raw data, you can use the Roboflow API: https://api.roboflow.com/\*workspace\*/\*project\*/\*version\* Look un…

---

<div class="post-metadata">

**Author:** ![Artur\_Nijazov](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/artur_nijazov/32/4579_2.png) [@Artur\_Nijazov](https://discuss.roboflow.com/u/Artur_Nijazov)\
**Post date:** [May 27, 2024, 6:28am UTC](https://discuss.roboflow.com/t/how-can-i-get-a-pr-curve/5918/3 "2024-05-27T06:28:47Z")

</div>

That data, unfortunately, does not contain the true labels and predicted probabilities I need.

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [May 28, 2024, 4:59pm UTC](https://discuss.roboflow.com/t/how-can-i-get-a-pr-curve/5918/4 "2024-05-28T16:59:18Z")

</div>

Could you be more specific and give examples on what data you are looking for?

True labels - do you mean the ground truth annotations? Those are available in a format of your choice once you download the dataset.

Predicted probabilities - you would have to run inferences on your model on the dataset to get those if the stats produced in the API are not enough.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [June 18, 2024, 4:59pm UTC](https://discuss.roboflow.com/t/how-can-i-get-a-pr-curve/5918/5 "2024-06-18T16:59:45Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
