Class UserFastRankingUpdateableRecommender<U>
java.lang.Object
es.uam.eps.ir.ranksys.rec.AbstractRecommender<U,I>
es.uam.eps.ir.ranksys.rec.fast.AbstractFastRecommender<U,I>
es.uam.eps.ir.ranksys.rec.fast.FastRankingRecommender<U,U>
es.uam.eps.ir.relison.links.recommendation.UserFastRankingRecommender<U>
es.uam.eps.ir.relison.links.recommendation.updateable.UserFastRankingUpdateableRecommender<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.core.index.ItemIndex<U>
,es.uam.eps.ir.ranksys.core.index.UserIndex<U>
,es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>
,es.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>
,es.uam.eps.ir.ranksys.rec.fast.FastRecommender<U,U>
,es.uam.eps.ir.ranksys.rec.Recommender<U,U>
,UpdateableRecommender<U,U>
- Direct Known Subclasses:
UpdateableBM25
public abstract class UserFastRankingUpdateableRecommender<U> extends UserFastRankingRecommender<U> implements UpdateableRecommender<U,U>
Abstract class for user recommendation in social networks. The recommendation algorithm can be updated over time.
-
Field Summary
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.UserFastRankingRecommender
graph
-
Constructor Summary
Constructors Constructor Description UserFastRankingUpdateableRecommender(FastGraph<U> graph)
Constructor. -
Method Summary
Modifier and Type Method Description void
update(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,U,java.lang.Double>> newPrefs)
Re-trains the recommender after receiving a set of preferencesvoid
updateDelete(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,U,java.lang.Double>> oldPrefs)
Re-trains the recommender after removing some preferencesMethods inherited from class es.uam.eps.ir.relison.links.recommendation.UserFastRankingRecommender
getFreq, getFreq, getGraph
Methods inherited from class es.uam.eps.ir.ranksys.rec.fast.FastRankingRecommender
getRecommendation, getScoresMap
Methods inherited from class es.uam.eps.ir.ranksys.rec.fast.AbstractFastRecommender
getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, iidx2item, item2iidx, numItems, numUsers, uidx2user, user2uidx
Methods inherited from class es.uam.eps.ir.ranksys.rec.AbstractRecommender
getRecommendation, getRecommendation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex
containsItem, getAllIidx, getAllItems, iidx2item, iidx2item, item2iidx, item2iidx
Methods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastUserIndex
containsUser, getAllUidx, getAllUsers, uidx2user, uidx2user, user2uidx, user2uidx
Methods inherited from interface es.uam.eps.ir.ranksys.rec.Recommender
getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation
Methods inherited from interface es.uam.eps.ir.relison.links.recommendation.updateable.UpdateableRecommender
update, updateAddItem, updateAddUser, updateDelete
-
Constructor Details
-
UserFastRankingUpdateableRecommender
Constructor.- Parameters:
graph
- a fast graph representing the social network.
-
-
Method Details
-
update
public void update(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,U,java.lang.Double>> newPrefs)Re-trains the recommender after receiving a set of preferences- Specified by:
update
in interfaceUpdateableRecommender<U,U>
- Parameters:
newPrefs
- the new preferences
-
updateDelete
public void updateDelete(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,U,java.lang.Double>> oldPrefs)Re-trains the recommender after removing some preferences- Specified by:
updateDelete
in interfaceUpdateableRecommender<U,U>
- Parameters:
oldPrefs
- the preferences to remove
-