tumourkit.segmentation.hovernet.metrics.stats_utils.get_fast_aji

tumourkit.segmentation.hovernet.metrics.stats_utils.get_fast_aji(true, pred)

AJI version distributed by MoNuSeg, has no permutation problem but suffered from over-penalisation similar to DICE2.

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.