---
title: precisionRecall
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mlclassifiermetrics/precisionrecall
---

# precisionRecall

A data table listing the precision and recall percentages for each class.

## Declaration

```swift
var precisionRecall: MLDataTable { get }
```

## Mentioned in

Improving Your Model’s Accuracy

## Discussion

Discussion Precision and recall are metrics calculated for each class. Together they describe the tradeoff between misapplying a label too liberally and missing examples of that label. Precision describes how effective the model was at applying a label only when appropriate for a given category (few false positives). Recall describes how effective the model was at finding all the relevant examples of a category (few false negatives).

The figure below shows how each example contributes to the precision and recall percentages for the category “Elephant”.

“Elephant” appears as the true or correct label only once, but it’s predicted twice. This second prediction is an error in precision. Precision and recall can give you a much better idea of how your model is making mistakes than classificationError. To determine what other categories “Elephant” examples may have been labeled with, see the confusion property.

## See Also

### Understanding the model

- [classificationError](createml/mlclassifiermetrics/classificationerror.md)
- [confusion](createml/mlclassifiermetrics/confusion.md)
- [confusionDataFrame](createml/mlclassifiermetrics/confusiondataframe.md)
- [precisionRecallDataFrame](createml/mlclassifiermetrics/precisionrecalldataframe.md)
