Open wailoktam opened 8 years ago
Your formula probably wouldn't work because max_r
indicates the index of the maximum similarity answer in d['good']
, not the actual value in d['good']
(i.e. np.max
). I guess max_r
should really be argmax_r
... The logic of the equation 1 if max_r == max_n else 0
is that if the index of the maximum in d['good']
is also the index of the maximum in d['all'] = d['good'] + d['bad']
. Hope this makes sense.
Edit: I just changed some parts in the repository
Hi, I am wondering why you calculate the top 1 precision by check whether the answer assigned the maximum score by the model is the good answer assigned the maximum score by the model (if my interpretation is not wrong)
I try replacing the computation of c1 by:
, which I think is more appropriate. But it seems to go wrong as it always end up being zero. Can anyone give me any insight on this? Many thanks.