public interface GlobalItemRecommender
ItemRecommender
is that the input is only the item or list of items instead of user specific
information. This interface can be used to provide a Find Similar Items / People Also Liked
feature.ItemRecommender
Modifier and Type | Method and Description |
---|---|
List<ScoredId> |
globalRecommend(Set<Long> items)
Recommend all possible items for a basket of items using the default exclude set.
|
List<ScoredId> |
globalRecommend(Set<Long> items,
int n)
Recommend up to n items for a basket of items using the default exclude set.
|
List<ScoredId> |
globalRecommend(Set<Long> items,
int n,
Set<Long> candidates,
Set<Long> exclude)
Produce a set of recommendations for the item.
|
List<ScoredId> |
globalRecommend(Set<Long> items,
Set<Long> candidates)
Recommend all possible items for a basket of items from a set of candidates using the default
exclude set.
|
List<ScoredId> globalRecommend(Set<Long> items)
items
- The items value.globalRecommend(Set, int, Set, Set)
List<ScoredId> globalRecommend(Set<Long> items, int n)
items
- The items value.n
- The number of recommendations to return.globalRecommend(Set, int, Set, Set)
List<ScoredId> globalRecommend(Set<Long> items, @Nullable Set<Long> candidates)
items
- The items value.candidates
- The candidate set (can be null to represent the universe).globalRecommend(Set, int, Set, Set)
List<ScoredId> globalRecommend(Set<Long> items, int n, @Nullable Set<Long> candidates, @Nullable Set<Long> exclude)
items
- The items valuen
- The number of ratings to return. If negative, no specific size is requested.candidates
- A set of candidate items which can be recommended. If null
, all
items are considered candidates.exclude
- A set of items to be excluded. If null
, a default exclude set is
used.Double.NaN
.