Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
update ranking
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Jul 22, 2019
1 parent 2d72f5f commit 2cc050c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deeprank/learn/rankingMetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def hitrate(rs):

def success(hitrate):
'''
Example
Input: hitrate = [0, 0, 0.3, 0.4]
Output: success = [0, 0, 1, 1]
'''
Expand Down

0 comments on commit 2cc050c

Please sign in to comment.