Skip to content
Discussion options

You must be logged in to vote

The main difference is their typical use case and input format. Classification.MulticlassJaccardIndex (weighted=“macro”) computes class-wise Jaccard index averaged over classes, mainly for classification tasks with discrete labels. segmentation.MeanIoU is designed for pixel-wise segmentation masks and averages IoU across classes.
Both measure intersection-over-union but differ in expected inputs and context, so they aren’t fully interchangeable. Use the one that matches your task’s data format and prediction type.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SkafteNicki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants