You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We observed that the metric value might slightly change depending on the list of k for which we want to calculate our metric. Thus, if we calculate CMC for k_vals=(1,10) and k_vals=(1,20) the CMC@1 may be slightly different.
Most likely the reason for instability is in torch.topk and in a way how we calculate the metric:
We observed that the metric value might slightly change depending on the list of
k
for which we want to calculate our metric. Thus, if we calculate CMC fork_vals=(1,10)
andk_vals=(1,20)
the CMC@1 may be slightly different.Most likely the reason for instability is in
torch.topk
and in a way how we calculate the metric:open-metric-learning/oml/functional/metrics.py
Line 89 in c6004e4
Let's consider an example and calculate
precision@2
:Two elements have the same distance to the query, so, if
top_k
picks the first of them, thanprecision@2 = 1
, otherwiseprecision@2 = 1/2
.The text was updated successfully, but these errors were encountered: