tumourkit.segmentation.hovernet.metrics.stats_utils.get_fast_aji_plus
- tumourkit.segmentation.hovernet.metrics.stats_utils.get_fast_aji_plus(true, pred)
AJI+, an AJI version with maximal unique pairing to obtain overall intersecion. Every prediction instance is paired with at most 1 GT instance (1 to 1) mapping, unlike AJI where a prediction instance can be paired against many GT instances (1 to many). Remaining unpaired GT and Prediction instances will be added to the overall union. The 1 to 1 mapping prevents AJI’s over-penalisation from happening.
Fast computation requires instance IDs are in contiguous orderding i.e [1, 2, 3, 4] not [2, 3, 6, 10]. Please call remap_label before hand and by_size flag has no effect on the result.