tumourkit.segmentation.hovernet.metrics.stats_utils
Functions
Traditional dice. |
|
Ensemble Dice as used in Computational Precision Medicine Challenge. |
|
AJI version distributed by MoNuSeg, has no permutation problem but suffered from over-penalisation similar to DICE2. |
|
AJI+, an AJI version with maximal unique pairing to obtain overall intersecion. |
|
Ensemble dice. |
|
match_iou is the IoU threshold level to determine the pairing between GT instances p and prediction instances g. |
|
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. |
|
Rename all instance id so that the id is contiguous i.e [0, 1, 2, 3] not [0, 2, 4, 6]. |