protected abstract class LambdaReranker.LambdaUserReranker extends GreedyReranker.GreedyUserReranker<U,I>
LambdaReranker
.Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.objects.Object2DoubleMap<I> |
novMap
Map of the novelty of each item.
|
protected Stats |
novStats
Statistics about novelty scores.
|
protected Stats |
relStats
Statistics about relevance scores.
|
maxLength, recommendation
Constructor and Description |
---|
LambdaUserReranker(Recommendation<U,I> recommendation,
int maxLength)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
norm(double score,
Stats stats)
Returns the normalized value of a relevance or novelty
score.
|
protected abstract double |
nov(Tuple2od<I> iv)
Returns the novelty score of an item.
|
protected int |
selectItem(it.unimi.dsi.fastutil.ints.IntSortedSet remainingI,
List<Tuple2od<I>> list)
Selects the next element of the permutation that maximizes the
objective function.
|
protected double |
value(Tuple2od<I> iv)
Objective function that drives the greedy selection.
|
rerankPermutation, update
protected Stats relStats
protected Stats novStats
protected it.unimi.dsi.fastutil.objects.Object2DoubleMap<I> novMap
public LambdaUserReranker(Recommendation<U,I> recommendation, int maxLength)
recommendation
- input recommendationmaxLength
- maximum length of the re-ranked recommendationprotected double norm(double score, Stats stats)
score
- the relevance or novelty scorestats
- the relevance or novelty statisticsprotected int selectItem(it.unimi.dsi.fastutil.ints.IntSortedSet remainingI, List<Tuple2od<I>> list)
GreedyReranker.GreedyUserReranker
selectItem
in class GreedyReranker.GreedyUserReranker<U,I>
remainingI
- positions of the original recommendation that have
not been selected yet.list
- the list of item-score pairs of the input recommendationprotected double value(Tuple2od<I> iv)
GreedyReranker.GreedyUserReranker
value
in class GreedyReranker.GreedyUserReranker<U,I>
iv
- item-score pair of the input recommendation.Copyright © 2016. All rights reserved.