For segmentation tasks, we want to see how well the predicted area matches the true area. Two main metrics help us do this:
- IoU (Intersection over Union): It measures the overlap between the predicted and true segments divided by their combined area. It tells us how much the prediction and truth agree.
- Dice coefficient: It is similar but gives more weight to the overlap. It is twice the overlap divided by the total size of both areas.
Both metrics range from 0 to 1, where 1 means perfect match. They help us understand how accurate the segmentation is in a clear way.