Class FastUpdateableRankingRecommender<U,I>
java.lang.Object
es.uam.eps.ir.ranksys.rec.AbstractRecommender<U,I>
es.uam.eps.ir.relison.links.recommendation.updateable.fast.AbstractFastUpdateableRecommender<U,I>
es.uam.eps.ir.relison.links.recommendation.updateable.fast.FastUpdateableRankingRecommender<U,I>
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.core.index.ItemIndex<I>,es.uam.eps.ir.ranksys.core.index.UserIndex<U>,es.uam.eps.ir.ranksys.fast.index.FastItemIndex<I>,es.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>,es.uam.eps.ir.ranksys.rec.fast.FastRecommender<U,I>,es.uam.eps.ir.ranksys.rec.Recommender<U,I>,FastUpdateableRecommender<U,I>,UpdateableRecommender<U,I>
- Direct Known Subclasses:
UpdateableUBkNN
public abstract class FastUpdateableRankingRecommender<U,I> extends AbstractFastUpdateableRecommender<U,I>
Fast updateable recommender that ranks the user. It can be updated over time.
-
Field Summary
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.updateable.fast.AbstractFastUpdateableRecommender
prefData -
Constructor Summary
Constructors Constructor Description FastUpdateableRankingRecommender(FastUpdateablePreferenceData<U,I> prefData)Constructor. -
Method Summary
Modifier and Type Method Description es.uam.eps.ir.ranksys.fast.FastRecommendationgetRecommendation(int uidx, int maxLength, java.util.function.IntPredicate filter)abstract it.unimi.dsi.fastutil.ints.Int2DoubleMapgetScoresMap(int uidx)Returns a map of item-score pairs.Methods inherited from class es.uam.eps.ir.relison.links.recommendation.updateable.fast.AbstractFastUpdateableRecommender
getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, iidx2item, item2iidx, numItems, numUsers, uidx2user, user2uidxMethods inherited from class es.uam.eps.ir.ranksys.rec.AbstractRecommender
getRecommendation, getRecommendationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex
containsItem, getAllIidx, getAllItems, iidx2item, iidx2item, item2iidx, item2iidxMethods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastUserIndex
containsUser, getAllUidx, getAllUsers, uidx2user, uidx2user, user2uidx, user2uidxMethods inherited from interface es.uam.eps.ir.ranksys.rec.Recommender
getRecommendation, getRecommendationMethods inherited from interface es.uam.eps.ir.relison.links.recommendation.updateable.UpdateableRecommender
update, update, updateAddItem, updateAddUser, updateDelete, updateDelete
-
Constructor Details
-
FastUpdateableRankingRecommender
Constructor.- Parameters:
prefData- the updateable preference data.
-
-
Method Details
-
getRecommendation
public es.uam.eps.ir.ranksys.fast.FastRecommendation getRecommendation(int uidx, int maxLength, java.util.function.IntPredicate filter)- Specified by:
getRecommendationin interfacees.uam.eps.ir.ranksys.rec.fast.FastRecommender<U,I>- Specified by:
getRecommendationin classAbstractFastUpdateableRecommender<U,I>
-
getScoresMap
public abstract it.unimi.dsi.fastutil.ints.Int2DoubleMap getScoresMap(int uidx)Returns a map of item-score pairs.- Parameters:
uidx- index of the user whose scores are predicted- Returns:
- a map of item-score pairs
-