Skip to content

Commit

Permalink
hitrate for nGraphRank
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRenaud committed Apr 5, 2019
1 parent 7194eca commit 7872208
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iScore/process/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ def get_hitrate(self,data='iScore',ref='capri',normalize=True):
index = np.argsort(values)

# revert if necessary
if data == 'GraphRank':
index = index[::-1]
if data.endswith("GraphRank"):
index = index[::-1]


#sort the data
values = values[index]
Expand Down

0 comments on commit 7872208

Please sign in to comment.