View source: R/compute_precision_recall.R
compute_precision_recall | R Documentation |
Compute precision and recall statistics between predicted tree boxes and ground truth data
compute_precision_recall(
ground_truth,
predictions,
threshold = 0.4,
summarize = TRUE
)
ground_truth |
A SpatialPolygonDataFrame of ground truth polygons. |
predictions |
A SpatialPolygonDataFrame of prediction polygons. |
threshold |
The intersection-over-union threshold for a prediction overlap with a ground truth to be considered a true positive. |
summarize |
Logical. If true, return the precision and recall for this dataset, if false, return a data frame of matched crowns and the IoU overlap with ground truth. |
The numeric identity of the crown is stored in a column named crown_id. An error will be raised if this column does not exist.
The recall and precision scores for the plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.