Class LambdaReranker.LambdaUserReranker
java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
- Direct Known Subclasses:
ClusteringCoefficientComplement.ClusteringCoefficientUserReranker
,EdgeMetricReranker.GraphMetricEdgeReranker
,GraphMetricReranker.GraphMetricUserReranker
,InterCommunityReranker.CommunityMetricUserReranker
,UserMetricReranker.UserMetricUserReranker
- Enclosing class:
- LambdaReranker<U,I>
protected abstract class LambdaReranker.LambdaUserReranker
extends java.lang.Object
User re-ranker for
LambdaReranker
.-
Field Summary
Fields Modifier and Type Field Description protected it.unimi.dsi.fastutil.objects.Object2DoubleMap<I>
novMap
Map of the novelty of each item.protected Normalizer<I>
novStats
Statistics about novelty scores.protected Normalizer<I>
relStats
Statistics about relevance scores. -
Constructor Summary
Constructors Constructor Description LambdaUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,I> recommendation, int maxLength)
Constructor. -
Method Summary
Modifier and Type Method Description protected abstract double
nov(org.ranksys.core.util.tuples.Tuple2od<I> iv)
Returns the novelty score of an item.protected int
selectItem(it.unimi.dsi.fastutil.ints.IntSortedSet remainingI, java.util.List<org.ranksys.core.util.tuples.Tuple2od<I>> list)
protected double
value(org.ranksys.core.util.tuples.Tuple2od<I> iv)
-
Field Details
-
Constructor Details
-
LambdaUserReranker
public LambdaUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,I> recommendation, int maxLength)Constructor.- Parameters:
recommendation
- input recommendationmaxLength
- maximum length of the re-ranked recommendation
-
-
Method Details
-
selectItem
protected int selectItem(it.unimi.dsi.fastutil.ints.IntSortedSet remainingI, java.util.List<org.ranksys.core.util.tuples.Tuple2od<I>> list) -
value
-
nov
Returns the novelty score of an item.- Parameters:
iv
- item-relevance pair- Returns:
- the novelty of the item
-