question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A problem when calculating mAP

See original GitHub issue

https://github.com/layumi/Person_reID_baseline_pytorch/blob/a253943e16abd94277ee832a950b975df75b11e3/evaluate.py#L47-L54

In the above code, I can’t understand the way to calculate old_precision. Here old_precision should be the precison of the last true-match, should it be changed like this? old_precision = i*1.0/(rows_good[i-1] +1) or just

...
ap = ap + d_recall*(old_precision + precision)/2 
# Simplified from here `http://www.robots.ox.ac.uk/~vgg/data/oxbuildings/compute_ap.cpp`
old_precision = precision

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
buduicommented, Feb 25, 2019

I make a simple picture: image I thought it should be average of point 1 and point 3, in fact we should use point 2 and point 3. Thanks for your patience @layumi.

1reaction
buduicommented, Feb 25, 2019

我搞懂了,不是上一个匹配点,而是上一个rank对应的点。谢谢。

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mean Arterial Pressure Calculation (MAP) Nursing
The MAP should be >65 mmHg. *systolic blood pressure PLUS (diastolic blood pressure which is multiplied by 2) and then DIVIDED by 3....
Read more >
How to Calculate Mean Arterial Pressure (MAP) | NursingCenter
To calculate a mean arterial pressure, double the diastolic blood pressure and add the sum to the systolic blood pressure. Then divide by...
Read more >
Physiology, Mean Arterial Pressure - StatPearls - NCBI - NIH
The definition of mean arterial pressure (MAP) is the average arterial pressure throughout one cardiac cycle, systole, and diastole.
Read more >
MAP CALCULATION QUESTIONS Flashcards - Quizlet
WHAT IS THE SYSTOLIC PRESSURE OF A PERSON WITH A DIASTOLIC PRESSURE OF 40 mm Hg AND A MAP OF 60 mm Hg?...
Read more >
Understanding Mean Arterial Pressure - Healthline
MAP is a calculation that doctors use to check whether there's enough blood flow to supply blood to all your major organs. Too...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found