this post was submitted on 25 Nov 2023
1 points (100.0% liked)

Machine Learning

1 readers
1 users here now

Community Rules:

founded 1 year ago
MODERATORS
 

Hello,

I have a question that may seem trivial but which confused me because I found different approaches to doing it in different papers.

So let’s take the recall as an example : to calculate it on the test set I found two different methods in the codes available for published papers. Some calculate the recall for every image then calculate the mean on all images, other simply use the formula as if each pixel was an element in it’s own. What is the correct way to doing so ?

Thanks in advance !

top 4 comments
sorted by: hot top controversial new old
[–] VAL9THOU@alien.top 1 points 11 months ago

As long as the specific method they use is documented (and, ideally, their ground truth and results) I would say it doesn't really matter. There aren't really any single correct methods for scoring most ML models, AFAIK

[–] jeandebleau@alien.top 1 points 11 months ago (1 children)

If all the images have the same size, it does not matter because in this case the sum of the means equals the mean of the sum.

[–] Meddhouib10@alien.top 1 points 11 months ago

How is that ? You devide by the either the pred positive pixel or the ground truth positive pixel depending of either you are calculating the recall or the precision

[–] puppet_pals@alien.top 1 points 11 months ago

Wrote https://arxiv.org/abs/2207.12120 but never published. I think the "metric definition" is a pretty nice explanation of how it works. Process is the same between bounding boxes & segmentation maps aside from the IoU computation.