Skip to content

I'm confused, there is no approximation ? #165

@bot66

Description

@bot66

In the README.md introduction:

Finally, we compute the AP as the area under this curve (shown in light blue) by numerical integration.
No approximation is involved since the curve is piecewise constant.

But I look into the code (line 185 main.py)

    """
     The Average Precision (AP) is the area under the curve
        (numerical integration)
        matlab: ap=sum((mrec(i)-mrec(i-1)).*mpre(i));
    """
    ap = 0.0
    for i in i_list:
        ap += ((mrec[i]-mrec[i-1])*mpre[i])
    return ap, mrec, mpre

The calculated AP, is the area under the red line not the light bule line, isn't it ?
But README.md says that is the area under the light blue line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions