Class HeuristicWeaknessReranker<U>
java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.SwapReranker<U,I>
es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.SwapGreedyReranker<U,I>
es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.SwapLambdaReranker<U,U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.GraphSwapReranker<U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.edge.AbstractHeuristicNeighborOverlapReranker<U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.edge.HeuristicWeaknessReranker<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
GlobalReranker<U,U>
public class HeuristicWeaknessReranker<U> extends AbstractHeuristicNeighborOverlapReranker<U>
Swap reranker for optimizing the embeddedness of the graph. It uses heuristics to optimize the execution times.
-
Field Summary
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.GraphSwapReranker
graph, recs
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.SwapLambdaReranker
novMap, novStats, relStats
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.SwapGreedyReranker
cutOff
Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.SwapReranker
globalvalue
-
Constructor Summary
Constructors Constructor Description HeuristicWeaknessReranker(double lambda, int cutOff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, int mode)
Constructor -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.edge.AbstractHeuristicNeighborOverlapReranker
computeGlobalValue, innerUpdate, novAdd, novAddDelete, novDelete, update
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.GraphSwapReranker
nov, rerankRecommendations, update
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.SwapLambdaReranker
rerankPermutation, selectItem, value, valuetop
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.SwapGreedyReranker
getBasePerm, rerankRecommendation
-
Constructor Details
-
HeuristicWeaknessReranker
public HeuristicWeaknessReranker(double lambda, int cutOff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, int mode)Constructor- Parameters:
cutOff
- the definitive length of the recommendation rankings.lambda
- trade-off between the average embeddedness and the original scorenorm
- the normalization scheme.graph
- the original graphmode
- the execution mode: 1) Embededness is corrected any time a swap is done. 2) Embededness is corrected every time a user has finished its reranking. 3) Embededness is never corrected (only use the heuristic)
-