I'm using the algorithm UserUserItemScorer is possible to obtain the accuracy of recommendation, ie, the quality score of the recommended item. The only way I found was the value of "score". Is there another way besides the "score" method?
Asked
Active
Viewed 134 times
1 Answers
1
[disclaimer: LensKit lead developer]
First, a terminology thing: in recommender systems, the score and the accuracy of the recommendation are very different things. The score is how relevant the recommender thinks the item is, and is the basis for doing recommendation; the accuracy of the recommendation is how well that score models the user's actual opinion of the item.
I'll move forward assuming that you're looking for ways to get the score for an item.
There are at least three ways:
- Call
score
onItemScorer
for individual items. This is very slow for multiple items. - Call
score
onItemScorer
with a batch of items. This is usually much faster. However, if you got the items from anItemRecommender
, then you are probably repeating computations. - The
ItemRecommender
returns a list of ‘scored IDs’, which are item IDs associated with scores. ThegetScore()
method on the item recommender will get the score for each item.
But in general, the item scorer's score is exactly how you get relevance estimates from LensKit. The scores returned by an ItemRecommender
are usually just the scores provided by the underlying item scorer.

Michael Ekstrand
- 28,379
- 9
- 61
- 93
-
Thank you with the answer above has helped a lot. I also need to know the accuracy of the recommendation. I think the interface Metric, TestUserMetric will give me the accuracy. – Lucas Pires Aug 13 '14 at 13:01