Fix .rank() method for multiple models#615
Fix .rank() method for multiple models#615hieuddo merged 5 commits intoPreferredAI:masterfrom hieuddo:fix-recommender-rank
Conversation
@tqtg Could you please elaborate more? Based on my understanding, these models compute ranking scores by weighting the tradeoff between predicted ratings and top-k aspects via the following formula: We can replace |
|
I was thinking whether we can reuse the |
The new Recommender.rank() function adds k as required value, which breaks some models that do not use k in ranking evaluation (e.g., ComparER, EFM, LRPPM). This commit updates .rank() for mentioned models with topK option.
The new Recommender.rank() function adds k as required value, which breaks some models that do not use k in ranking evaluation (e.g., ComparER, EFM, LRPPM). This commit updates .rank() for mentioned models with topK option.
Description
The new
Recommender.rank()function addskas required value, which breaks some models that do not usekin ranking evaluation (e.g., ComparER, EFM, LRPPM).I putkinto**kwargsand usek = kwargs.get("k", -1)instead.Another option is to addk=Noneto incompatible models.I added and updated topK ranking for mentioned models.