recommenders-team/recommenders

How can I add exclude items while using BPR

Open

#1.264 geöffnet am 24. Dez. 2020

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (2.972 Forks)batch import
help wanted

Repository-Metriken

Stars
 (17.706 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 16h) (10 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide