What are IoU / Jaccard and Tversky losses?
hard- IoU (Jaccard) = |P ∩ G| / |P ∪ G|; loss = 1 - IoU.
- Similar to Dice but stricter.
- Tversky loss generalizes: T(P, G) = |P∩G| / , where α, β control the penalty on false positives vs false negatives.
- Handy for skewed segmentation where you want to trade recall vs precision. α=β=0.5 recovers Dice.