U
- type of the usersI
- type of the itemspublic class ItemNeighborhoodRecommender<U,I> extends FastRankingRecommender<U,I>
Modifier and Type | Field and Description |
---|---|
protected FastPreferenceData<U,I> |
data
Preference data.
|
protected ItemNeighborhood<I> |
neighborhood
Item neighborhoods.
|
protected int |
q
Exponent of the similarity.
|
iIndex, uIndex
Constructor and Description |
---|
ItemNeighborhoodRecommender(FastPreferenceData<U,I> data,
ItemNeighborhood<I> neighborhood,
int q)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
it.unimi.dsi.fastutil.ints.Int2DoubleMap |
getScoresMap(int uidx)
Returns a map of item-score pairs.
|
getRecommendation
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
protected final FastPreferenceData<U,I> data
protected final ItemNeighborhood<I> neighborhood
protected final int q
public ItemNeighborhoodRecommender(FastPreferenceData<U,I> data, ItemNeighborhood<I> neighborhood, int q)
data
- preference dataneighborhood
- item neighborhoodq
- exponent of the similaritypublic it.unimi.dsi.fastutil.ints.Int2DoubleMap getScoresMap(int uidx)
getScoresMap
in class FastRankingRecommender<U,I>
uidx
- index of the user whose scores are predictedCopyright © 2016. All rights reserved.