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
Compatibility: Public
Modifier and Type | Method and Description |
---|---|
java.util.List<ScoredId> |
globalRecommend(java.util.Set<java.lang.Long> items)
Recommend all possible items for a basket of items using the default exclude set.
|
java.util.List<ScoredId> |
globalRecommend(java.util.Set<java.lang.Long> items,
int n)
Recommend up to n items for a basket of items using the default exclude set.
|
java.util.List<ScoredId> |
globalRecommend(java.util.Set<java.lang.Long> items,
int n,
java.util.Set<java.lang.Long> candidates,
java.util.Set<java.lang.Long> exclude)
Produce a set of recommendations for the item.
|
java.util.List<ScoredId> |
globalRecommend(java.util.Set<java.lang.Long> items,
java.util.Set<java.lang.Long> candidates)
Recommend all possible items for a basket of items from a set of candidates using the default
exclude set.
|
java.util.List<ScoredId> globalRecommend(java.util.Set<java.lang.Long> items)
items
- The items value.globalRecommend(Set, int, Set, Set)
java.util.List<ScoredId> globalRecommend(java.util.Set<java.lang.Long> items, int n)
items
- The items value.n
- The number of recommendations to return.globalRecommend(Set, int, Set, Set)
java.util.List<ScoredId> globalRecommend(java.util.Set<java.lang.Long> items, @Nullable java.util.Set<java.lang.Long> candidates)
items
- The items value.candidates
- The candidate set (can be null to represent the universe).globalRecommend(Set, int, Set, Set)
java.util.List<ScoredId> globalRecommend(java.util.Set<java.lang.Long> items, int n, @Nullable java.util.Set<java.lang.Long> candidates, @Nullable java.util.Set<java.lang.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
.