U
- type of the usersI
- type of the itemspublic abstract class FastRankingRecommender<U,I> extends AbstractFastRecommender<U,I>
iIndex, uIndex
Constructor and Description |
---|
FastRankingRecommender(FastUserIndex<U> uIndex,
FastItemIndex<I> iIndex)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FastRecommendation |
getRecommendation(int uidx,
int maxLength,
IntPredicate filter)
Filter recommendation.
|
abstract it.unimi.dsi.fastutil.ints.Int2DoubleMap |
getScoresMap(int uidx)
Returns a map of item-score pairs.
|
getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, iidx2item, item2iidx, numItems, numUsers, uidx2user, user2uidx
getRecommendation, getRecommendation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRecommendation, getRecommendation
containsUser, getAllUidx, getAllUsers, uidx2user, uidx2user, user2uidx, user2uidx
containsItem, getAllIidx, getAllItems, iidx2item, iidx2item, item2iidx, item2iidx
public FastRankingRecommender(FastUserIndex<U> uIndex, FastItemIndex<I> iIndex)
uIndex
- user indexiIndex
- item indexpublic FastRecommendation getRecommendation(int uidx, int maxLength, IntPredicate filter)
FastRecommender
getRecommendation
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 abstract it.unimi.dsi.fastutil.ints.Int2DoubleMap getScoresMap(int uidx)
uidx
- index of the user whose scores are predictedCopyright © 2016. All rights reserved.