Class GraphLocalReranker<U>
java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalReranker<U,I>
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalGreedyReranker<U,I>
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalLambdaReranker<U,U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.local.GraphLocalReranker<U>
- Type Parameters:
U- type of the users.
- All Implemented Interfaces:
GlobalReranker<U,U>
- Direct Known Subclasses:
ClusteringCoefficientComplement,CompleteCommunityReranker,EdgeMetricReranker,GraphMetricReranker,InterCommunityReranker,UserMetricReranker
public abstract class GraphLocalReranker<U> extends LocalLambdaReranker<U,U>
Generalization of greedy local reranking strategies, for processing several recommendations at a time.
These rerankers, given a set of recommendations, sequentially process them one by one. Those
recommendations which are processed later are aware of the previously processed recommendations.
-
Field Summary
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalLambdaReranker
novMap, novStats, relStatsFields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalGreedyReranker
cutOff -
Constructor Summary
Constructors Constructor Description GraphLocalReranker(int cutOff, double lambda, java.util.function.Supplier<Normalizer<U>> norm, int seed, Graph<U> graph)Constructor.GraphLocalReranker(int cutOff, double lambda, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph)Constructor. -
Method Summary
Modifier and Type Method Description protected abstract voidinnerUpdate(U user, org.ranksys.core.util.tuples.Tuple2od<U> updated)Updates the different parameters of the reranker, further than changing the edges in the graph.protected voidupdate(U user, org.ranksys.core.util.tuples.Tuple2od<U> bestItemValue)Given a user, and the next value to add, updates the reranker parameters.Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalLambdaReranker
nov, rerankPermutation, selectItem, valueMethods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalGreedyReranker
getBasePerm, rerankRecommendationMethods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.local.LocalReranker
rerankRecommendations, update
-
Field Details
-
graph
The graph.
-
-
Constructor Details
-
GraphLocalReranker
public GraphLocalReranker(int cutOff, double lambda, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph)Constructor.- Parameters:
cutOff- maximum length of the definitive ranking.lambda- trade-off between the original and novelty scoresnorm- the normalization strategy.graph- the original network.
-
GraphLocalReranker
public GraphLocalReranker(int cutOff, double lambda, java.util.function.Supplier<Normalizer<U>> norm, int seed, Graph<U> graph)Constructor.- Parameters:
cutOff- maximum length of the definitive ranking.lambda- trade-off between the original and novelty scoresnorm- the normalization strategy.seed- the random seed.graph- the original network.
-
-
Method Details
-
update
Description copied from class:LocalGreedyRerankerGiven a user, and the next value to add, updates the reranker parameters.- Specified by:
updatein classLocalGreedyReranker<U,U>- Parameters:
user- The userbestItemValue- The next value to add at the ranking
-
innerUpdate
Updates the different parameters of the reranker, further than changing the edges in the graph.- Parameters:
user- the target user.updated- the new candidate user.
-