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