recommenders-team/recommenders

How can I add exclude items while using BPR

Open

#1,264 建立於 2020年12月24日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Python (2,972 fork)batch import
help wanted

倉庫指標

Star
 (17,706 star)
PR 合併指標
 (平均合併 6天 16小時) (30 天內合併 10 個 PR)

描述

Adding exclude_items list when using BPR.recommend or recommend_all

So, I have a need where I must exclude certain list of items for recommendation when using recommend or recommend_all. Mainly due to time constraint.

How do I implement this?

I though about doing top_k * 3, then filtering on my own side but that method is very ugly and might not even work, maybe all top_k * 3 recommendation might be in exclude list.

貢獻者指南