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.
|
getRecommendationgetRecommendation, getRecommendation, 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, item2iidxprotected 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.