U
- type of the usersI
- type of the itemspublic class UserNeighborhoodRecommender<U,I> extends FastRankingRecommender<U,I>
Modifier and Type | Field and Description |
---|---|
protected FastPreferenceData<U,I> |
data
Preference data.
|
protected UserNeighborhood<U> |
neighborhood
User neighborhood.
|
protected int |
q
Exponent of the similarity.
|
iIndex, uIndex
Constructor and Description |
---|
UserNeighborhoodRecommender(FastPreferenceData<U,I> data,
UserNeighborhood<U> 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 UserNeighborhood<U> neighborhood
protected final int q
public UserNeighborhoodRecommender(FastPreferenceData<U,I> data, UserNeighborhood<U> neighborhood, int q)
data
- preference dataneighborhood
- user 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.