Skip to content

Adds different types of relevance to the accuracy layer#3532

Open
timmeinhardt wants to merge 3 commits intoBVLC:masterfrom
timmeinhardt:relevance
Open

Adds different types of relevance to the accuracy layer#3532
timmeinhardt wants to merge 3 commits intoBVLC:masterfrom
timmeinhardt:relevance

Conversation

@timmeinhardt
Copy link
Contributor

This PR adds a type option to the accuracy layer, which can be set to either recall (REC), precision (PRE) or jaccard index (JAC). The default option is REC which corresponds to the previously existing implementation and therefore does not break any existing usages. All other options and the accuracy per class top blob work seamlessly with the different types.
Especially the jaccard index, which corresponds to the intersection over union, is a useful relevance measurement for segmentation tasks.

I want to point out that the layer name "accuracy" might be confused with the "rand accuracy" or "rand index" (sometimes only called "accuracy") which is a relevance measurement in itself. For the sake of consistency the layer should actually be called "relevance", but I wanted to keep backwards compatibility.

Also one should be aware of what using a top_k > 1 in combination with the jaccard index actually means. The accuracy per class will not always increase, because the intersection is effectively increased.

I appreciate any comments or improvements and hope that this feature is regarded as useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant