Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 16th, 2018
93
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
def mean_reciprocal_rank(score_list, answer):
mrr = 0
for item in score_list:
if item[0] == answer:
mrr += (1 / (score_list.index(item)+1))
return mrr/len(score_list)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 2 min ago | 0.38 KB
js max product of 2 numbers in array
C# | 4 min ago | 1.30 KB
Reto UF3
C# | 7 min ago | 3.43 KB
Untitled
Lua | 11 min ago | 15.41 KB
Untitled
Bash | 23 min ago | 1.81 KB
klicova_slova.sql
SQL | 37 min ago | 10.32 KB
Roblox Universal Script GUI Anti Afk etc
Lua | 39 min ago | 0.17 KB
clear_temp
Python | 41 min ago | 4.12 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!