tumourkit.segmentation.hovernet.metrics.stats_utils

Functions

get_dice_1

Traditional dice.

get_dice_2

Ensemble Dice as used in Computational Precision Medicine Challenge.

get_fast_aji

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

get_fast_aji_plus

AJI+, an AJI version with maximal unique pairing to obtain overall intersecion.

get_fast_dice_2

Ensemble dice.

get_fast_pq

match_iou is the IoU threshold level to determine the pairing between GT instances p and prediction instances g.

pair_coordinates

Use the Munkres or Kuhn-Munkres algorithm to find the most optimal unique pairing (largest possible match) when pairing points in set B against points in set A, using distance as cost function.

remap_label

Rename all instance id so that the id is contiguous i.e [0, 1, 2, 3] not [0, 2, 4, 6].