U - type of the usersI - type of the itemspublic class RandomRecommender<U,I> extends AbstractFastRecommender<U,I>
iIndex, uIndex| Constructor and Description |
|---|
RandomRecommender(FastUserIndex<U> uIndex,
FastItemIndex<I> iIndex)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FastRecommendation |
getRecommendation(int uidx,
int maxLength,
IntPredicate filter)
Filter recommendation.
|
FastRecommendation |
getRecommendation(int uidx,
IntStream candidates)
Candidates ranking.
|
Recommendation<U,I> |
getRecommendation(U u,
Stream<I> candidates)
Candidates ranking.
|
getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, iidx2item, item2iidx, numItems, numUsers, uidx2user, user2uidxgetRecommendation, getRecommendationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRecommendation, getRecommendationcontainsUser, getAllUidx, getAllUsers, uidx2user, uidx2user, user2uidx, user2uidxcontainsItem, getAllIidx, getAllItems, iidx2item, iidx2item, item2iidx, item2iidxpublic RandomRecommender(FastUserIndex<U> uIndex, FastItemIndex<I> iIndex)
uIndex - fast user indexiIndex - fast item indexpublic FastRecommendation getRecommendation(int uidx, int maxLength, IntPredicate filter)
FastRecommendergetRecommendation in interface FastRecommender<U,I>getRecommendation in class AbstractFastRecommender<U,I>uidx - index of the user to be issued a recommendationmaxLength - maximum length of recommendationfilter - (fast) filter to decide which items might be recommendedpublic Recommendation<U,I> getRecommendation(U u, Stream<I> candidates)
RecommendergetRecommendation in interface Recommender<U,I>getRecommendation in class AbstractFastRecommender<U,I>u - user to be issued a recommendationcandidates - candidate items to be included in the recommendationpublic FastRecommendation getRecommendation(int uidx, IntStream candidates)
FastRecommendergetRecommendation in interface FastRecommender<U,I>getRecommendation in class AbstractFastRecommender<U,I>uidx - item of the user to be issued a recommendationcandidates - candidate items to be included in the recommendationCopyright © 2016. All rights reserved.