Calculate Model Metrics
After creating a model and uploading its predictions, you’ll need to call this endpoint to update matches against ground truth annotations and calculate various metrics such as IOU. This will enable sorting by metrics, filtering down to false positives or false negatives, and a number of evaluation plots and metrics present in the Insights page. You can continue to add model predictions to a dataset even after running the calculation of the metrics. However, the calculation of metrics will have to be retriggered for the new predictions to be matched with ground truth and update sorts, false positive/negative filters, and metrics used in the Insights page.How Nucleus matches predictions to ground truthDuring IOU calculation for geometric predictions, predictions are greedily matched to ground truth by taking highest IOU pairs first. For segmentation predictions, a prediction and ground truth pair is matched if it has a IOU of more than 1% or if its a true positive. By default the matching algorithm is class-agnostic (
class_agnostic defaults to True): it will greedily create matches regardless of the class labels.If you’d like to compute IOU by allowing associations between certain labels and predictions that don’t have the same name, you can specify them using a list of allowed_label_matches (shown in the example below). When supplying allowed_label_matches, you must also set class_agnostic to False.CategoryPredictions (because matching predictions to ground truth is trivial).