View source: R/eval_rankScore.R
rankScore | R Documentation |
Rank Score extends the recall metric to take the positions of correct items in a ranked list into account.
rankScore(recommendedIDX, testSetIDX, alpha)
recommendedIDX |
indices of the recommended items. Object of class |
testSetIDX |
indices of the items in the test set. Object of class |
alpha |
is the ranking half life. Object of class |
Rank Score is defined as the ratio of the Rank Score of the correct items to best theoretical Rank Score achievable for the user:
rankscore_{p} =∑_{i\in{h}} 2^{-\frac{rank(i)-1}{α}}
rankscore_{max} = ∑_{i=1}^{|T|} 2^{-\frac{i-1}{α}}
rankscore = \frac{rankscore_p}{rankscore_{max}}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.