Class WeaknessReranker<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.AbstractNeighborOverlapReranker<U>
es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.edge.WeaknessReranker<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
GlobalReranker<U,U>
public class WeaknessReranker<U> extends AbstractNeighborOverlapReranker<U>
Swap reranker for maximizing the average weakness of the graph, i.e. for minimizing the
average embeddedness of the network.
-
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 WeaknessReranker(double lambda, int cutOff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph)
Constructor -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.global.swap.edge.AbstractNeighborOverlapReranker
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
-
WeaknessReranker
public WeaknessReranker(double lambda, int cutOff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph)Constructor- Parameters:
cutOff
- maximum number of edges to considerlambda
- trade-off between the average embeddedness and the original scorenorm
- normalization strategy.graph
- the original graph
-